- 1
What is heap memory
2 Respuestas
+ 1
Serial posting could be compared to spam ^^
Seriouly: 5 posts next to each other is near close to abuse :P
https://www.sololearn.com/Discuss/603868/?ref=app
https://www.sololearn.com/Discuss/603872/?ref=app
https://www.sololearn.com/Discuss/603877/?ref=app
https://www.sololearn.com/Discuss/603885/?ref=app
https://www.sololearn.com/Discuss/603887/?ref=app
https://www.sololearn.com/Discuss/603891/?ref=app
0
Heap Memory on the other hand is used in case of dynamic allocations( mallocs ) like,
int *a = (int*)malloc(length*sizeof(int));
Size of the Heap Memory is only limited by the size of the RAM and the swap memory. Memory allocation happens at runtime.
it is needed when size of static memory is not enough