[prog] guide to memory in C, the stack, heap?
suzo at spin.net.au
Sat Feb 18 11:43:01 EST 2006
Just to add to the analogies, one that I like is a stack of trays.
Certain fast food places have a special place for stacking trays, they
are in special container with a slot in the top through which trays may
be added and removed. Internally the thing is spring loaded to make
sure that the top tray is always at the right height to be removed from
the slot, that is as more trays are added the stack is pushed down.
The thing that this example adds is the structure that prevents someone
from adding or removing items from other parts of the stack.
More information about the Programming