What are the two data types available in C#?
Interview question and answer by: Bharathi Cherukuri
| Posted on: 4/20/2012 | Category: C# Interview questions
| Views: 544 | | Points: 40
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.
| Alert Moderator
Found interesting? Add this to: