What is difference between value and reference types?

Answer Posted / surya

Value Type holds the data within this own memory allocation.

where as Reference Type contains a pointer to another
memory location that holds the data.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between dictionary and hashtable?

525


What is the difference between hashtable and dictionary in c#?

478


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

527


What is data adapter in c#?

471


Is var a data type?

508






Can scriptable objects have methods?

502


What is nameof c#?

491


List some of the classes used by system.data namespace?

452


Is there throws keyword in c#?

492


What is use of abstract class in c#?

498


How to get the sum of last 3 items in a list using lambda expressions?

508


Can we inherit two classes in c#?

512


What are All kind of access specifiers for a class and for methods

558


What is the implicit name of the parameter that gets passed into the class set method?

494


Why do we use constructors in c#?

586