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



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

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

More Dot Net General Interview Questions

What is marshling?

0 Answers  


What is multiThreading in .NET?

0 Answers  


What is the new three features of COM+ services, which are not there in COM (MTS)

0 Answers   TCS,


What is prerender event of a page?

3 Answers   C Squared Systems,


SAP Business One(this is intigrated tool of .net)

0 Answers   TCS,






What is alias ? Is it used in .Net ?

0 Answers   MCN Solutions,


diff between forms authentication and windows authentication?

11 Answers  


How will you make .NET programs work in Linux ?

0 Answers  


What is lambda expressions in c#?

0 Answers  


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

0 Answers  


Is .net capable of supporting multi-thread?

0 Answers  


Is there any attempt system for microsoft technology papers?

0 Answers  


Categories