Defining and Initializing Enumeration
- enum opern_modes {input, output, append};
- By default, the first enumerator is assigned the value is zero.Each subsequent enumerator is assigned a value one
- greater than the value of the enumerator that immediately preceds it .
Each enum Defines a Unique Type
- An object of enumeration type may be initialazed or assigned only by one of its enumerators or by another
object of the same enumeration type.