The text of this article is not in this database — only its details are. Read it on the old site: How memory is managed by Stack and Heap
9 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: How memory is managed by Stack and Heap
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Bohdan StupakPosted Feb 15, 2020, 11:42 AM
I've really liked the diagram. Still, it's always worth mentioning that value types also can be stored on heap in case they are boxed or are part of a reference type.
Gowtham RajamanickamPosted Apr 19, 2016, 6:47 AM
good article
Gaurav GuptaPosted Dec 17, 2011, 6:54 AM
stack and heap is little confusing with reference type.
Sachin KaliaPosted Mar 8, 2011, 1:03 PM
Nice article...Good to know about Stack and heap... Cheers .Net
Ravi K KashyapPosted Feb 25, 2011, 7:56 AM
what wil happen for this---- string s = "Hello"; s = s + ": " + "World";
Priyank PatelPosted Feb 25, 2011, 6:11 AM
I understand ... but still confuse what happen in the heap and stack for the String type
Sam HobbsPosted Feb 25, 2011, 12:12 AM
The answer to the question of whether the stack or the heap is used is very clear to C++ programmers. The designers of C# attempted to make the language easier and that has made it quite confusing in many ways.