Discussion
Choose the correct answer
Answer: C
Correct answer: Enumeration feature increase the power of C
Enumerations add expressive power: they let a set of related integer constants be given a named type, so the intent is visible in the source, the values appear symbolically in a debugger, and the compiler can warn where a switch fails to handle every enumerator.
The other statements are false as written. Enum variables are ordinary integer objects - they can be assigned new values and compared freely, and C does not restrict them to their declared enumerators. That looseness is the price of the compatibility C keeps with plain integers.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development