Heap is synonymous with what the standard calls free storage. Unlike stacks, which are used for function calls, as well as for storing object objects, heaps grow in the opposite direction (from top to bottom) in many implementations (as opposed to stacks that grow from bottom to top). Of course, not one of them is required by the standard.
The heap data structure, on the other hand, is completely different - it is a specialized tree structure with certain properties.
Perhaps some implementations use the heap data structure to manage free stores, where the name might have come from. (See buddy memory allocation .)
source
share