Google News
logo
CPP - Quiz(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 :   int variable


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

Advertisement