Home / DeveloperSection / Interviews / What are value types and reference types?
You haven’t finished your post yet. Are you sure you want to leave and discard your draft?
Can you answer this question?
Sumit Kesarwani
Value types are stored in the Stack.
Examples: bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short, strut, uint, ulong, ushort.
Reference types are stored in the Heap.
Examples: class, delegate, interface, object, string.
You have need login or register for voting of answers or question.
Sumit Kesarwani
13-Nov-2013Value types are stored in the Stack.
Examples: bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short, strut, uint, ulong, ushort.
Reference types are stored in the Heap.
Examples: class, delegate, interface, object, string.