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
What is the data provider name to connect to access database?
What does int parse do in c#?
Is int an object in c#?
Can constructor be protected?
What is default value of bool in c#?
Which is better javascript or c#?
What is the purpose of static?
What can be done with c#?
What is difference between a constant and read-only in C#?
When was c# created?
Why do we write system in c#?
What's the c# syntax to catch any possible exception?
What is thread life cycle in c#?
What does m mean in decimal c#?
can you allow a class to be inherited, but prevent the method from being over-ridden?