How can you specify the starting value of an enumeration in C?

  • By initializing the first element of the enumeration with a value
  • By using the sizeof operator
  • It's not possible to specify the starting value
  • Using the #define directive
In C, you can specify the starting value of an enumeration by initializing the first element with a value. This value will be the starting point, and subsequent elements will increment from there.
Add your answer
Loading...

Leave a comment

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