What is the Difference between value and reference type?
Answer Posted / purish dwivedi
A variable that is a value type, stores the data, while a
variable of a reference type stores a reference to the data.
Value types are stored directly on the stack while Reference
types are stored on the run-time heap.
| Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
Why do we use public static void main in c#?
What is the difference between ienumerable and icollection?
In c#, what will happen if you do not explicitly provide a constructor for a class?
What is a cs file?
What is private virtual in C#?
What are primitive types in c#?
What is difference between Trace and Debug
What is static variable in c#?
Define an abstract class?
What is the extension of c# file?
Why can’t struct be used instead of class for storing entity?
Define an escape sequence, name few strings in escape sequence?
What is desktop GUI application?
Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?
What is the difference between delegates and superdelegates?