+ 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
Kimhor - avatar
3 ответов
0
Thanks Nithiwat
4th Feb 2018, 9:35 AM
Kimhor
Kimhor - avatar
+ 21
https://m.youtube.com/watch?v=Jt9ewQU-q4w 🎥 What is the difference between Stack and Heap - Programming ...
4th Feb 2018, 9:31 AM
Nithiwat
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