Enumerated Types
An enumerated type is a data type with user-specified values (symbols):
- keyword enum, followed by
- an optional identifier of the enumerated type (tag), followed by
- A list of names that are permissible value for this data type.
Example:
enum marital_status {
single, married, divorced, widowed};
enum marital_status a, b, c;
a = married;