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 dll a library?

673


What is virtual class in C#?

739


When a switch is said to be congested?

755


Can structs in c# have destructors?

739


What is icollection in c#?

696


Is var a data type?

724


What is the use of the dispose method in C# ?

718


What is private constructor c#?

680


How do you create partial methods?

736


What is Implementation inheritance and interface inheritance?

688


What is an escape sequence in c#?

735


What is yield in c#?

660


What is bit in c#?

729


What is parameter c#?

725


I want to print "Hello" even before main() is executed. How will you achieve that?

709