+ 1

Difference between stack and heap ?

according to memory allocation, input and outpu etc.

16th Mar 2018, 6:39 AM
Vamsi Krishna
Vamsi Krishna - avatar
1 Resposta
+ 4
Traditionally the stack is where the the processor state is held. ie registers and processor pointers etc. Heap is where variables are pushed into main memory or cache to hold execution context. Of course there are other meanings in context of programming algorithms
16th Mar 2018, 7:13 AM
Mike Choy
Mike Choy - avatar