1.

In which type do the enumerators are stored by the compiler?(a) string(b) integer(c) float(d) string & floatThe question was posed to me in my homework.The doubt is from Enumerations in division Types, Pointers, Arrays & Structures in C++ of C++

Answer» RIGHT answer is (b) integer

The best I can EXPLAIN: In C++, enumerations are STORED as integers by the compiler STARTING with 0.


Discussion

No Comment Found

Related InterviewSolutions