Enumeration types are declared in C programming using keyword enum. For example:
enum suit { hearts; spades; clubs; diamonds; };
Here, an enumerated variable suit is created having tags: hearts, spades, clubs, and diamonds.
Enumeration types are declared in C programming using keyword enum. For example:
enum suit { hearts; spades; clubs; diamonds; };
Here, an enumerated variable suit is created having tags: hearts, spades, clubs, and diamonds.