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


Please Help Members By Posting Answers For Below Questions

What does addressof operator do in background ?

589


How string definitions will prevent escaping on backslashes in C#?

527


Ho we can see assembly information?

521


What is part of a method signature in c#?

470


What is difference between private and protected?

503






What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?

529


How does dependency injection work c#?

502


List out two different types of errors in c#?

529


What is inumerable?

571


write a c# program add two matrix with input number ?

567


What are the characteristics of c#?

474


What is constructors, explain with syntax

547


Can we inherit static class in c#?

486


Can we override interface methods in c#?

477


What does int32 mean in c#?

469