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
Does a class need a constructor c#?
What is a sealed class?
What is a three-tier application.
What is difference between class and interface in c#?
What is c# console application?
What is the difference between asp net and c#?
What is a console in c#?
What does exclamation mark mean c#?
What is the use of partial methods?
what is difference between is and as operators in c#?
What is difference between int and int in c#?
Explain polymorphism in c# with a simple example?
How to update the gui from another thread in c#?
What is difference between ienumerable and list in c#?
Does the variables of a private class-level inherited?