1.

Identify the incorrect option.(a) enumerators are constants(b) enumerators are user-defined types(c) enumerators are same as macros(d) enumerator values start from 0 by defaultI got this question by my college professor while I was bunking the class.I need to ask this question from Enumerations in chapter Types, Pointers, Arrays & Structures in C++ of C++

Answer» CORRECT choice is (C) enumerators are same as MACROS

The EXPLANATION is: Enumerators are used in order to CREATE our own types whereas macros are textual substitutions.


Discussion

No Comment Found

Related InterviewSolutions