Datasheet

ENUMERATION CONSTANTS
Enumeration constants are identifiers defined in enum type declarations. The identi-
fiers are usually chosen as mnemonics to contribute to legibility. Enumeration con-
stants are of int type. They can be used in any expression where integer constants
are valid.
For example:
enum weekdays { SUN = 0, MON, TUE, WED, THU, FRI, SAT };
The identifiers (enumerators) used must be unique within the scope of the enum
declaration. Negative initializers are allowed. See Enumerations for details about
enum declarations.
133
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroC PRO for AVR
CHAPTER 5