110k views
3 votes
A set of named constants that start with the value 0 for the first constant and increment by 1 for each subsequent constant can be declared as a(n) ________.

User Pat Hensel
by
4.9k points

1 Answer

2 votes

Answer:

Enum

Explanation:

A set of named constants that start with the value 0 for the first constant and increment by 1 for each subsequent constant can be declared as a(n) enum.

Enums are lists of constants. Enums are used to represent predefined list of values that do not represent any kind of numerical or textual data.

User Ruel
by
6.0k points