+ 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
3 Answers
0
Thanks Nithiwat
+ 21
https://m.youtube.com/watch?v=Jt9ewQU-q4w
š„ What is the difference between Stack and Heap - Programming ...
+ 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