Wednesday, July 22, 2015

Value Type & Reference type

Value Type
Reference type
Struct, Int, double, long, float, bool, enum
Class, object, string
Memory is allocated at Compile Time
Memory is allocated at Run Time
Memory allocation stored in Stack. i.e. Contiguous
Memory Allocation Store in Heap, i.e. Random
Store the Value
Store Memory Address

No comments:

Post a Comment