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?

Answers were Sorted based on User's Feedback



What is the Difference between value and reference type?..

Answer / nithya

value type variable :
If the valuetype variable data is copied to another
variable, its actual data is not effected.
eg., for valuetype variables are
char,boolean,structures,enumerations .
eg.
dim m.n as integer
m=100
n=200

reference type variable:
variable doesnt stores the actual data, instead it has a
pointer . that pointer will points to the actual data
location
eg., for reference type variabls are array,class .
eg.
dim a,b as integer
a=5
assume, a is in the memory locatyion of 1001.
that address value will be stored to the another variable
say b whose address is 1020

Is This Answer Correct ?    6 Yes 9 No

What is the Difference between value and reference type?..

Answer / ramu

watras

Is This Answer Correct ?    1 Yes 27 No

Post New Answer

More C Sharp Interview Questions

What is the lock statement in c#?

0 Answers  


Distinguish between system.string and system.text.stringbuilder classes?

0 Answers  


2. What happened when BO object has been called?

0 Answers   Mphasis,


How can you sort the elements of the array in descending order?

4 Answers  


What is a void c#?

0 Answers  


what is full assembly reference

0 Answers  


How do I convert a string to an int in c#?

0 Answers  


What is the difference between String s(Small s) and String S(Capital S)?

4 Answers  


What is Interface and Abstraction (in real time scenario)

4 Answers   HCL,


What is a protected class in c#?

0 Answers  


What are the 2 types of data types available in c#?

0 Answers  


What is .net c#?

0 Answers  


Categories