Search This Blog

Sunday, January 16, 2011

difference between stack and heap

'Stack' is a common name for the memory space in which automatic
variables (and often function parameters) are allocated.

'Heap'is a common name for the "free store", the memory space where
dynamic objects are allocated (see "new" and "delete").