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

Please explain what is reflection and what is it for?

983


What's singlecall activation mode used for in .net?

1036


What is a windows process in .net?

1117


Explain code access security.

1056


What is different between webusercontrol and in webcustomcontrol?

1036


Whate are resource files?

1081


Please explain what are an inheritance, polymorphism, and encapsulation?

1156


Explain the difference between task and thread in .net?

1033


What are virtual destructures?

1170


Please explain what is heap and what is stack?

1051


What is static constructor, when it will be fired?

1099


How can you instantiate a tuple?

1067


Explain how to rename a table using sql queries?

1125


Explain how to manage pagination in a page using .net?

1024


What is "common language specification" (cls) in .net?

1036