1.

What will happen when defining the enumerated type?(a) it will not allocate memory(b) it will allocate memory(c) it will not allocate memory to its variables(d) allocate memory to objectsThis question was posed to me in a national level competition.The above asked question is from Enumerations topic in section Types, Pointers, Arrays & Structures in C++ of C++

Answer»

Right CHOICE is (a) it will not allocate MEMORY

Easiest EXPLANATION - Enumerator will allocate the memory when its variables are DEFINED.



Discussion

No Comment Found

Related InterviewSolutions