+ 1

What's the difference between stack and heap?

21st Jul 2016, 6:06 PM
S V R
S V R - avatar
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();
25th Jul 2016, 1:25 PM
Ricardo Pucca
Ricardo Pucca - avatar
0
furthermore value types use stack to store variables while reference types use heap.
31st Jul 2016, 2:21 AM
Javeria Khan