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.
Loading...
Related Quiz
- String literals in C are stored in ________ memory segment.
- Why is it recommended to use pointer arithmetic instead of array indexing for traversal in some cases?
- A pointer in C holds the ________ of a variable.
- How does the memory alignment of a structure's members affect its total size?
- The preprocessor directive ________ is used to include libraries in a C program.