Interview Questions

Difference between value and reference type.

C# Interview Questions and Answers


(Continued from previous question...)

217. Difference between value and reference type.

what are value types and reference types?
Value type - bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short, strut, uint, ulong, ushort
Value types are stored in the Stack
Reference type - class, delegate, interface, object, string
Reference types are stored in the Heap

(Continued on next question...)

Other Interview Questions