Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the purpose of the 'enum' keyword in C?
Answer: The 'enum' keyword is used to define named integer constants, providing a more readable alternative to using raw integer values.

Example:

enum Days { Monday, Tuesday, Wednesday, Thursday, Friday };
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook