Stack and heap | Sololearn: Learn to code for FREE!
+ 4

Stack and heap

Could anyone explain me about stack and heap in an easy way to understand? I’m really no idea about them

4th Feb 2018, 9:28 AM
Kimhor - avatar
3 ответов
Thanks Nithiwat
4th Feb 2018, 9:35 AM
Kimhor - avatar
+ 21 🎥 What is the difference between Stack and Heap - Programming ...
4th Feb 2018, 9:31 AM
Nithiwat - avatar
+ 3
Stack is used for static memory allocation while heap is used for dynamic memory allocation. all value types are stored on the stack while objects data are stored on the heap and Memory address for that object is stored on the stack
9th Feb 2018, 5:41 AM
Vishwanath Patil
Vishwanath Patil - avatar