There are different ways for memory to be allocated for a program to use:

There's the stack and the heap. The stack behaves like a stack data structure:

Whenever something gets "allocated" on...