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
If c# destructors are so different to c++ destructors, why did ms use the same syntax?
What is the difference between package and interface?
What is definition in c#?
what is a static constructor?
What are extensions methods in c#?
How does c# achieve polymorphism?
How jit (just in time) works?
What is ControlBox Propertie
What is global namespace in c#?
Can we inherit sealed class in c#?
How can an inner class access the members of outer class?
What is the difference between interface and functional interface?
What is the implicit name of the parameter that gets passed into the set method/property of a class?
Can a constructor have a return type?
What is difference between virtual and override in c#?