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 difference between value and reference types ?

Answer Posted / thirupathi reddy

value refers what is present in the address of the memory
Reference type refers to the address of the memory
Ex:
int a = 10( here the value stores in the address 'a' and the value of that address is 10)
int b = &a (here the variable b refers the address of
the variable a)
here if we print("%d",a) the value prints
here if we print("%d",b) the reference value of a is printed.
this is the difference between "value" and "reference values"

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 3 types of comments in c#?

995


What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?

1206


What are the types of attributes in c#?

981


What is lastindexof c#?

917


Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records

1113


How do you inherit a class into other class in c#?

970


What is firstordefault c#?

997


Is array value type in c#?

1084


What is the difference between yield and return?

944


What are namespaces, and how they are used?

1058


What is the purpose of private constructor in c#?

1063


How do you implement thread synchronization in c#?

948


What do u mean by delegation?

1003


What is generic types in c#?

986


Is post back c#?

970