A region of memory used for dynamic memory allocation where variables are allocated and freed in any order during program execution. Unlike the stack, the heap allows for flexible memory allocation but requires manual management in some languages.
From Old English 'heap' meaning a pile or collection of things. In computing, it was adopted in the 1960s because memory in this region can be thought of as a 'pile' of available space that programs can draw from randomly.
Try Another Word