What are the two data types available in C#?

 Posted by Bharathi Cherukuri on 4/20/2012 | Category: C# Interview questions | Views: 1820 | Points: 40
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 

Comments or Responses

Login to post response