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

Can you inherit multiple classes in c#?

1083


What is binary search tree in data structure?

894


Are c# strings immutable?

891


What are the benefits of using generics?

992


What do you mean by a windows process in regards to memory allocation?

963


What is generic method in c#?

945


What is the function of .IsDescendent()?

1023


Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?

975


Is stringbuilder better than string?

903


How is exception handling implemented in c#?

1046


What is type checking in c#?

918


Is it possible to have a static indexer in c#? Allowed in c#.

951


What is arraylist?

1006


Can you create partial delegates and enumerations?

1022


What is the difference between list and arraylist in c#?

868