adplus-dvertising
CPP MCQ
Which variable does equals in size with enum variable?
A)
float variable
B)
string variable
C)
float & string variable
D)
int variable

Correct Answer : Option (D) :   int variable

Explanation : The enum variable is converted to an integer and stored by the compiler. So both are equal in size.