what are value types and reference types? where they are stored?
Answer Posted / poornima
Value Types:
All numeric data types
Boolean, Char, and Date
All structures, even if their members are reference types
Enumerations, since their underlying type is always SByte,
Short, Integer, Long, Byte, UShort, UInteger, or ULong
Reference Types:
String
All arrays, even if their elements are value types
Class types, such as Form
Delegates
1..In value type data stored on stack memory.
2..In reference type data stored on heap memory.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Can int be null c#?
What is the default modifier for class in c#?
Explain the types of errors in c#?
What is tuple in c#?
Is python easier than c#?
What is ControlBox Propertie
Explain publishers and subscribers in events.
What do you mean by the delegate in c#?
What are handlers in c#?
Is there a way to force garbage collection?
What is the difference between icomparer and icomparable in c#?
Can you inherit multiple abstract classes in c#?
What exception can an overridden method throw in comparison with the method it is overriding?
What is difference between for and foreach loop in c#?
What are the properties of c#?