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

Explain About delegates

1031


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

989


Is list a collection c#?

987


What are the basics of c#?

1047


Can I fly with a loop recorder?

916


Explain streamreader/streamwriter class?

996


What is xor operation?

922


Show us in simple steps to create setup & deployment project for windows application?

988


what optimizations does the c# compiler perform when you use the /optimize+ compiler option?

1060


What is difference between list and ilist in c#?

935


What is strong name assembly?

879


What is the difference between inheritance and abstract class?

890


What are concrete classes?

897


What is difference between Trace and Debug

1090


What are the access modifiers in c#?

946