What is difference between value and reference types?

Answer Posted / payal


value
this stored actual value

reference
stored the address of the value

value store in stack
reference is stored in heap

the variable which are value type they each time create
their own copy
the variable which are reference type they refer the same
object every time

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is null empty or whitespace c#?

505


How many constructors can a class have c#?

474


Can we inherit two classes in c#?

512


What is a c sharp?

466


Define interface class in c#?

519






Is c# dictionary a hash table?

482


what is the index value of the first element in an array?

512


What is whitespace in c#?

494


What does async mean in c#?

505


Can we declare private class in c#?

484


Define c# delegate?

525


Is array a collection c#?

528


Why are strings immutable c#?

471


What is console application with example?

498


Is it possible to execute multiple catch block for a single try statement?

585