Answer:
The two data types available in C# are:
1) Value Type
2) Reference Type.
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.
Asked In: Many Interviews |
Alert Moderator