+ 1
What's the difference between stack and heap?
2 Réponses
+ 1
stack is the static memory where you can store statics values like string name = 'johndoe".
heap is the dinamic memory where you can store dinamics values like method string name() that has the command: string name = Console.ReadLine();
0
furthermore value types use stack to store variables while reference types use heap.