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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about .NET services?

628


What is il and c#?

580


Explain how to produce an assembly?

581


Do you know what is .net standard?

579


What is STA in .NET?

645






What is .net and why it is used?

540


What is the difference between asp.net & vb.net and explain architecture?

540


If any body working in Infosys, please can u give me the referense to that company because i hered that their is openings for freshers with referal..

1498


Explain how to spawn a thread?

541


What is difference between static page and dynamic page?

532


Can you explain what do you understand about web service?

610


Is there any inbuilt tool or command provided by .NET to view the code inside the assembly?

607


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

591


I'm having some trouble with cas. How can I troubleshoot the problem?

577


State the differences between the dispose() and finalize().

599