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

Explain me what is a design pattern and what is it for?

0 Answers  


What is a metadata in .net?

0 Answers  


Can you write a class without specifying namespace?

0 Answers  


What are the difference bbetween value type & reference types ? Example from .net. Integer & struct are value types or reference types in .net?

0 Answers  


Should I use readerwriterlock instead of monitor.enter/exit?

0 Answers  


Tell us what is the difference between struct and class?

0 Answers  


What are the new features of Framework 1.1 ?

1 Answers  


Explain what is reflection in microsoft .net context?

0 Answers  


Tell us what do the following acronyms in .net stand for: il, cil, msil, cli and jit?

0 Answers  


What is the use of Treeview control?

0 Answers   CGI,


What is concurrency? How will you avoid concurrency when dealing with dataset?

0 Answers  


What is the difference between response.write & response.output.write?

0 Answers  


Categories