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 explain what is reflection and what is it for?
What's singlecall activation mode used for in .net?
What is a windows process in .net?
Explain code access security.
What is different between webusercontrol and in webcustomcontrol?
Whate are resource files?
Please explain what are an inheritance, polymorphism, and encapsulation?
Explain the difference between task and thread in .net?
What are virtual destructures?
Please explain what is heap and what is stack?
What is static constructor, when it will be fired?
How can you instantiate a tuple?
Explain how to rename a table using sql queries?
Explain how to manage pagination in a page using .net?
What is "common language specification" (cls) in .net?