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 do you mean by saying a "class is a reference type"?

911


Why is main static in c#?

960


what is an exception in .net?

930


What is argument in c#?

922


Explain the use of virtual, sealed, override, and abstract method?

873


What is satellite assembly? And steps to create satellite assembly?

995


Suppose two interfaces have same method, so how will you implement these methods in derive class?

974


What is the difference between integer and double?

913


Is c# easier than c++?

915


What is a thread? What is multithreading?

935


What is Dependency of Injection?

951


what is c# command?

981


What is generic in c#?

856


What is private readonly in c#?

947


What is difference between events and delegates?

935