Enumeration or enum in C

Enumerated types are characterized by a series of custom identifiers called enumerators, which represent the potential values they can hold. Instances of these enumerated types have the flexibility to adopt any of these enumerators as their value.

Syntax
enum name { member1,member2,.................. }
Example
enum month { January, Faburary, March, April, May, June, July,
Augest, September, October, November, December};

Syntax of enum variable

enum name variable_name;

Here 'name' specify the name of enumration data type name and variable 'variable_name' specify emum variable.

Example
#include<stdio.h>
enum month { January, February, March, April, May, June,
July, August, September, October, November, December};
int main()
{
    enum month mon;
    mon = July;
    printf("%d",mon); 
    return 0;
}  

The output of the code is 6.