1.

To which of these enumerators can be assigned?(a) integer(b) negative(c) enumerator(d) all of the mentionedThis question was addressed to me in an interview.Question is from Enumerations topic in chapter Types, Pointers, Arrays & Structures in C++ of C++

Answer»

Correct OPTION is (d) all of the mentioned

The best explanation: Since ENUMERATORS EVALUATE to integers, and integers can be assigned to enumerators, enumerators can be assigned to other enumerators.



Discussion

No Comment Found

Related InterviewSolutions