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 is .net able to support a lot of languages?

0 Answers  


What is assemblies in .net?

0 Answers  


what is yield keyword in .Net?

2 Answers  


How com+ related to the dna architecture?

0 Answers  


Explain clr, cts and cls?

0 Answers  






What is the difference between Dataset and DataReader? Can u breif me ADO.net classes and architecture

2 Answers   Deloitte,


Describe the compilation process for .net code?

0 Answers  


What is implement a generic action in webapi?

0 Answers  


Writing a Stored procedure to insert the values into a table

1 Answers  


explain the states of a window service application?

0 Answers  


What?s SingleCall activation mode used for?

1 Answers  


Is .net front end or backend?

0 Answers  


Categories