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 the use of gacutil.exe?

0 Answers   Amazon,


What is web.config in .net?

0 Answers  


What is Custom attribute? How to create? Namespace? If I'm having custom attribute in an assembly, how to say that name in the code? What is Reflection in .NET?

3 Answers   Accenture, CC Soft, Infosys,


Is .net a compiler?

0 Answers  


What is .net code security?

0 Answers  


Explain me what is the .net framework and how does it work?

0 Answers  


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

1 Answers  


What are multicast delegates?

0 Answers  


diff between forms authentication and windows authentication?

11 Answers  


What are the properties of ADO.NET?

0 Answers   Amdocs,


What is meant by globalization?

0 Answers  


What is the difference between .net and laravel?

0 Answers  


Categories