Difference between Value Types Reference Types?
Ask by Anonymous User
Updated 23 Sep 2020
Let us look at the differences between both the data types:
Value Types
They are allocated on stack.
It contains value.
Struct is value type.
Reference Types
They are allocated on heap.
It contains the address of the memory location.
Classes and Interfaces are reference types.