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

How to find methods of a assembly file (not using ILDASM) Reflection

1 Answers  


What is Assembly manifest? what all details the assembly manifest will contain.

1 Answers  


What does mean by .net framework?

0 Answers  


what is AGILE SCRUM methodoly....?

1 Answers  


What is serialization in .NET? What are the ways to control serialization?

1 Answers  






How to instantiate a delegate?

0 Answers  


Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component

1 Answers   Siebel Systems,


What does msil do?

0 Answers  


What is Finalizer in .NET define Dispose and Finalize ?

0 Answers   MCN Solutions,


What is Code group in .Net with respect to CAS

0 Answers  


Which namespace is used to support multithearding in .NET?

0 Answers   Sans Pareil IT Services,


Explain what is an application domain?

0 Answers  


Categories