Articles → .NET → Stack and heap

Stack and heap





















Picture showing how variable stores data in the memory

Click to Enlarge




Stack




Picture showing the pictorical representation of stack

Click to Enlarge



function MyFunction() {
  int arg1 = 5;
  int arg2 = 6;
}




Picture showing how the data is stored in the stack

Click to Enlarge












Heap




Picture showing how the data is stored in the heap

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Monday, May 4, 2015

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250