Do you know the difference between the Stack and the Heap?

Submitted by: Muhammad
The short answer would be: in the Stack are stored value types (types inherited from System.ValueType), and in the Heap are stored reference types (types inherited from System.Object).

We can say the Stack is responsible for keeping track of what is actually executing and where each executing thread is (each thread has its own Stack). The Heap, on the other hand, is responsible for keeping track of the data, or more precise objects.
Submitted by: Muhammad

Read Online Senior .Net Developer Job Interview Questions And Answers