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 / narayansahu

value types are stored on stack whereas reference types are
stored on heap memory.
dim i as integer
or
int i

i here ia a value type and will be stored on stack.
Actually nearly all the basic types are implemented as a
structure.
where as
dim i as new Point()
(assuming point as a class)
i here is a referece variable(pointer) and will be stored
on stack where as The Point object will be created on heap
and i will point to it.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If a class derives from another class, will the derived class automatically contain all the public, protected, and internal members of the base class?

915


How to find Percentage, name ,College from a resume or document ? How to export these values to other page in C#?

884


Define c# delegate?

957


What is the difference between dll and lib?

929


Is dictionary reference type c#?

783


Why do we need to serialize data?

844


What is the implicit name of the parameter that gets passed into the class set method?

902


What is the difference between new and override in c#?

952


Does c# provide copy constructor?

964


What is console based application?

919


What is type checking in c#?

863


Is null or empty in c#?

936


What is the difference between abstraction and encapsulation in c#?

902


How do I move from one form to another in c#?

842


What is a datacontract?

870