Why are the runtime heap used for dynamic memory allocation in C-style languages and the data structure both called “the heap”? Is there some relation?
![](https://itnursery.com/wp-content/uploads/2022/05/apple-touch-icon@2.png)
Why are the runtime heap used for dynamic memory allocation in C-style languages and the data structure both called “the heap”? Is there some relation?