Enumeration: declaration with example in C


• Enumeration is a type specifier.
• It is a unique type with integer constants.
• Enumerations are unique types with values ranging over a set of named constants called enumerators.
• The identifiers in an enumerator list are declared as constants of type int, and may appear wherever constants are required
• Its syntax is vary much same as that of structure or union.

No comments:

Post a Comment