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
Explain states of a thread in c#?
What is difference between list and dictionary in c#?
What is iqueryable and ienumerable in c#?
What is difference between singleordefault and firstordefault?
what is the default access for a class
How many types of polymorphism are there?
What is meant by console programming?
Does c# support templates?
Is python easier than c#?
What is the use of readkey in c#?
What is the difference between method overriding and method overloading?
What is session c#?
What is property c#?
Why do we need to serialize data?
Why do you need boxing in c#?