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...

Integer & struct are value types or reference types in .NET?

Answer Posted / guest

Integer and struct are value types in .net.Integer has
fixed range of values hence they are going to be stored in
the stack memory.so,what ever is stored in stack memeory is
a value type.struct is similar to a class(1.e, it contains
dataitems of different datatypes) but the only difference
is that struct is a value type ,class is a reference
type.struct is a value type because the values in struct
can be accesed with the help variable created for the
struct i.e,Dot operator appended to the struct variable can
be used to access each of the individual data items in the
struct class.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

  • Accomm
  • i have this code.now on server side i want to compare this id(Accommodation) value and want id i.e.Accommodation.visible=true;

    1816


    Explain garbage collection?

    982


    Is there built-in support for tracing?

    1035


    Conceptually, what is the difference between early-binding and late-binding?

    1090


    What is the use com component in .net?

    984


    What is the purpose of IClonable interface in .NET?

    1053


    State some of the different languages supported by .net?

    1012


    What is dot net architecture?

    1074


    What is the difference between .net 2000 and .net 2005(features)? Which one is better?

    973


    Explain what is heap and what is stack?

    1081


    State the differences between the dispose() and finalize().

    1038


    How is .net able to support multiple languages?

    1027


    Explain the difference between the while and for loop.

    991


    What does jit compilation do in .net?

    1053


    What is the advantage of .net core?

    1004