C examples for Data Type:enum
An enum can be declared globally or locally within a function.
/* Global enum */ enum speed { SLOW, NORMAL, FAST }; int main(void) { /* Local enum */ enum color { RED, GREEN, BLUE }; }