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 are the contents of an assembly ?

935


What is datareader c#?

874


What is difference between array and list?

883


how can one use hcl and c sharp together?

2006


What is a protected class c#?

838


What is int parse in c#?

907


Can non-default constructors be used with single call sao?

961


What are object pooling and connection pooling and difference between them?

940


How does dependency injection work c#?

877


What is private virtual in C#?

963


What are the concepts of dispose method?

874


How do I format a string in c#?

804


What is event and delegates in c#?

934


Why constructor is used in c#?

849


What are c# i/o classes?

974