Select Differences Between Reference Type And Value Typebr I #61
Select differences between reference type and value type:<br /> i. Memory allocated to 'Value type' is from heap and reference type is from 'System. ValueType'<br /> ii. Memory allocated to 'Value type' is from 'System. ValueType' and reference type is from 'Heap'<br /> iii. 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
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Data Types, Variables and Operators - Scope and Lifetime of Variables - Quiz No.2.