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?s the Unix name for a Windows service equivalent?

1 Answers  


Why DLL files are needed. & how They are Created in DOTNET?

1 Answers  


is c#.net supports multiple inheritance?

10 Answers  


What is the Difference between directcast and ctype?

3 Answers   Wipro,


. How .NET can support multiple languages?

1 Answers  


Example from .net. Integer & struct are value types or reference types in .net?

1 Answers  


Explain me why do we use msmq?

1 Answers  


What is interface and abstract class in .net?

1 Answers  


What is value type and refernce type in .net?

1 Answers  


What is close method? How its different from finalize and dispose?

1 Answers  


Explain the process of compilation in .NET?

1 Answers  


How can you turn-on and turn-off cas?

1 Answers  


Categories