Choose The Correct Statement About Structures As To Why They #320
Choose the correct statement about structures as to why they are defined as value types but not reference types?
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Object Oriented Concepts - Structures - Quiz No.1.
Choose the correct statement about structures as to why they are defined as value types but not reference types?
Since space required for structure variables is allocated on stack which is a form of memory that is automatically available when a variable to be used is in scope
Structures generally are used to represent user defined data types that consists of small amount of data in them. Hence using stack for declaration of such variables is not a problem
All of the mentioned
None of the mentioned