This is just a shorthand for defining symbolic constants.
Syntax:
enum id [ '=' INT ] ( ',' id [ '=' INT ] ) *
Without the "INT" values they start at one and increment by one.
Each separate "enum" declaration starts the count over.
Whenever an "INT" value is specified, the updating count starts from there and increments by one until and unless another "INT" occurs.
The symbols are defined in the current symbol context (block, function, or global).
This is just a shorthand for defining symbolic constants.
Syntax:
Without the "INT" values they start at one and increment by one. Each separate "enum" declaration starts the count over. Whenever an "INT" value is specified, the updating count starts from there and increments by one until and unless another "INT" occurs. The symbols are defined in the current symbol context (block, function, or global).