Answer the question
In order to leave comments, you need to log in
How to work with Heap and Stack?
When we change a reference from a heap (working with variables of a reference type) are we changing the file on the stack or changing the created instance?
Tell me more about this topic in this light.
Answer the question
In order to leave comments, you need to log in
1. The values of local variables are stored on the stack
2. The values of reference
types are stored on the heap 3. Reference type variables store references to values in the heap
So when you assign a new value to a variable, like this:
object obj = new object();
obj = null;
Kind of a dumb question. Roofing felts about working with memory, roofing felts about data structures. You can first look at Link Types and Value Types , if I understand the question correctly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question