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

What is immutability?

1010


What is common language specification (cls)?

1073


Explain the procedure to add assemly to gac to make it shared one?

973


which methos do you invoke on the dataadapter control to load your generated dataset with data?

1055


Explain what is the difference between encrypting a password and applying a hashing?

1121


What is the difference between reference type and value type?

932


Is .net capable of supporting multi-thread?

1023


Write a program to create a user control with name and surname as data members and login as method and also the code to call it.

924


What are the security policy levels in .Net

2086


Explain what is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?

1127


What is value type and refernce type in .net?

1061


Define code access security (cas)?

1009


What does msil do?

1010


Do you know the difference between the stack and the heap?

998


How anonymous method is different from a lambda expression?

999