enum
Example: enum |
Creates an enumeration specifier. Enumeration allows a series of constant integers to be easily assigned. The format to create a enumeration specifier is:
enum identifier {enumerator-list};
Identifier is a handle for identification, and is optional. Enumerator-list is a list of variables to be created. Each variable must be a constant integer, and is given the value of the previous variable plus 1. The first variable is given the value of 0.