- 1

What is heap memory

8th Aug 2017, 3:50 PM
Dheeraj Yadav
Dheeraj Yadav - avatar
2 Respuestas
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
8th Aug 2017, 3:58 PM
Nirmal Kumar Bhakat
Nirmal Kumar Bhakat - avatar