🎴 Flashcard Mode
Masters of Computer Applications (C++)
Card1 / 30
Mastered0
Review0
QuestionClick to flip
By default, which value is assigned to enumerated data type?
AnswerClick to flip back
A
0
💡 Explanation:
In C and C++, enumerated data types (enums) assign integer values starting from 0 by default. The first enumerator gets value 0, the next gets 1, and so on sequentially. However, programmers can explicitly assign different values if needed. This default behavior makes enums useful for array indexing and creating named constants.