enum name <3> in c code example
Example 1: how to define a enum in c
//enum <name of enumeration> { <possible choices separated by commas> }
enum type_of_fuel{ Gasolina, Gasoleo, Hibrido, Eletrico};
Example 2: enum c
// Changing default values of enum constants
enum suit {
club = 0,
diamonds = 10,
hearts = 20,
spades = 3,
};