what are value types and reference types? where they are stored?
Answer Posted / chiyan
value types holds the data directly ,no default value for
value type ex-->predefined datatypes
-->structures
-->enumarator
valuetypes will be stored in stack memory.
refe types does not holds the value directly,ref type holds
the default value ex-->arrays
-->classes
-->objects
ref types will be stored in heap memory.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What are modifiers in c#?
What is the max value of int32 in c#?
What are the characteristics of c#?
What is the difference between CreateObject() and GetObject()?
Can you access a hidden base class method in the derived class?
What does clr stand for?
How do I create multifile assembly?
what is IEquatable
What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?
Is void a class?
How to sort an int array in c#?
Why do we use delegates in c#?
What is gui in c#?
What is difference between property and variable in c#?
What are some examples of desktop applications?