What is the heap in C | Sololearn: Learn to code for FREE!
+ 7

What is the heap in C

Heap in dynamic memory allocation

27th Dec 2018, 8:21 AM
Gyanendra Gupta
Gyanendra Gupta - avatar
5 ответов
+ 17
Rewa Mathur That is definitely the best answer I've heard on this in a long while.
27th Dec 2018, 9:00 AM
David Carroll
David Carroll - avatar
+ 12
In certain programming languages including C and Pascal , a heap is an area of pre-reserved computer main storage ( memory ) that a program process can use to store data in some variable amount that won't be known until the program is running. ... In Pascal, a subheap is a portion of aheap that is treated like a stack. https://whatis.techtarget.com/definition/heap
27th Dec 2018, 8:27 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 10
Reading the explanations on this page might help: https://stackoverflow.com/questions/10200628/heap-memory-in-c-programming
27th Dec 2018, 8:45 AM
David Carroll
David Carroll - avatar
+ 10
Rewa Mathur... As someone who has personally explained this many times over the years, I really liked how clear, concise, and thorough your explanation was. Not too much or too little details. It was just right. 😉 I hope to see more of your contributions in the community. 😎
27th Dec 2018, 9:19 AM
David Carroll
David Carroll - avatar
+ 2
Thank you sir.
27th Dec 2018, 10:43 AM
Gyanendra Gupta
Gyanendra Gupta - avatar