There are many long explanations of heap vs. stack memory. This is a short one.
The Stack is the temporary memory where variables are stored while a function is executing. When the function finishes, the memory is cleared automatically.
The Heap is memory that the programmer can use for the application in a more manual way. You have to allocate memory, use it, and then free it up afterwords all by hand.
CREATED: DECEMBER 2016