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 smart navigation?

3 Answers  


The project which you have made, which methodology did you use?

0 Answers   Wipro,


Readonly vs. const?

2 Answers   Hewitt,


What is WSDL and disco file ?

3 Answers   CybAge, IBM, TCS,


Is Driver Script any how related to AOM?

0 Answers   TCS,






Can we have same method with same name and signature using partial classes

1 Answers  


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

0 Answers   TCS,


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

0 Answers  


1.What is the major advantage of polymorphism? Please don't simply say binding. Specify any other reason.

2 Answers   247Customer,


In Mvc Architecure what is view?

1 Answers   TCS,


Whate are resource files?

0 Answers  


What are Satellite Assemblies? How you will create this? How will you get the different language strings?

0 Answers   Reuters,


Categories