Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the Difference between value and reference type?

Answer Posted / amit kumar

Value Type:
When you assign value to value type variable to
another variable then it's value only copy to another
variable. It allocates memory in stack. Here both variables
work independent.

Reference Type:
When you assign value to reference type variable to
another reference type variable then it's value doesn't
copy both variables are dependent to each other and if you
change one value it reflects in other one. It allocates
memory in the heap data structure.

Is This Answer Correct ?    25 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Web.config?

1072


Is null in c#?

935


What is immutable in C#?

1061


What is unmannaged code and will CLR handle this kind of code or not .

1063


What is a verbatim string literal and why do we use it?

1003


What is session c#?

1015


Is string null or empty?

967


What is the purpose of a constructor in c#?

924


Can we inherit abstract class in c#?

962


Explain the role of Garbage collector and its generations?

1010


What is the difference between firstordefault and first?

958


Which is the best language for desktop application?

1010


How many constructors can a class have c#?

954


What is executenonquery c#?

926


Why do we need constructors?

951