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
Can you inherit multiple classes in c#?
What is reference c#?
What is list array in c#?
Why do we use virtual methods in c#?
How many variables do you need?
What is winforms c#?
What is the main method?
What is yield in c#?
What is the purpose of escape sequence?
Can an interface extend a class c#?
Does c# have a 'throws' clause?
Is it not possible to store a boolean value as a variable?
Is it possible to inline assembly or il in c# code?
What is satellite assembly? And steps to create satellite assembly?
What is the difference between Java and .NET garbage collectors?