In C programming, why would you use an enumeration (enum)?

  • To create multi-dimensional arrays
  • To define a set of named integer constants
  • To perform arithmetic operations
  • To store floating-point numbers
Enumerations (enums) in C are used to define a set of named integer constants, making your code more readable and self-explanatory.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *