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 is .net c#?
Define a manifest in .net?
What is the benefit of using interface in c#?
What is the difference between array and arraylist in c#?
Tell me the difference between call by value and call by reference.
What do you mean by for each loop?
Why main method is static in c#?
What are escape sequences explain with example?
What is the difference between Object and class adapters?
Is dictionary a collection?
What is a deadlock lock?
Can you create sealed abstract class in c#?
How does foreach loop work in c#?
Explain data types in c#?
What is cls, cts and clr in net?