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 is sqldatareader c#?

648


What is asp net in c#?

692


What is Fragmentation and its Types?

725


Will the following code compile and run?

716


Difference between debug.write and trace.write?

711






What is overloading in c#?

654


Is a valid int value?

672


What is the difference between values and reference types?

680


Define delegation in .net?

653


What is the difference between ienumerable and enumerable?

657


What is the difference between final finally and finalize in c#?

657


what is IDisposal interface,IComparable,IEquatable,IFormatable

725


Is char * null terminated?

692


What is different about switch statements in c#?

632


Is java better than c sharp?

690