adplus-dvertising
frame-decoration

Question

Select differences between reference type and value type :

1. Memory allocated to ‘Value type’ is from heap and reference type is from ‘System. ValueType’
2. Memory allocated to ‘Value type’ is from ‘System. ValueType’ and reference type is from ‘Heap’
3. Structures, enumerated types derived from ‘System. ValueType’ are created on stack, hence known as ValueType and all ‘classes’ are reference type because values are stored on heap

a.

1, 3

b.

2, 3

c.

1, 2, 3

d.

1

Answer: (b).2, 3

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Select differences between reference type and value type : 1. Memory allocated to ‘Value type’ is from heap and reference type is from ‘System. ValueType’ 2. Memory allocated...