What is the default starting value of an enumeration in C?
- 0
- 1
- The value of the first enumeration constant
- Unspecified
In C, if no initial value is provided for the first enumeration constant, it starts with 0. Subsequent constants increment by 1.
Loading...
Related Quiz
- You're working on a program that continuously monitors sensor data and reacts when a certain threshold is reached. Which loop construct would be most suitable for this task?
- What is the purpose of the strcpy function in C?
- What would be an appropriate use case for a union in C?
- In C++, what happens when two overloaded functions have the same number and types of parameters but differ in return type?
- In a scientific computation program, you need to represent a matrix of real numbers. What kind of array would be suitable for this purpose?