Home > DeveloperSection > Interviews > What are value types and reference types?

Posted on    November-13-2013 11:08 PM

 C# C# 
 1 Answer(s)
  1041  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Posted on    November-13-2013 1:00 AM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick