what is an enumerator in c code example
Example: how to define a enum in c
//enum <name of enumeration> { <possible choices separated by commas> }
enum type_of_fuel{ Gasolina, Gasoleo, Hibrido, Eletrico};
//enum <name of enumeration> { <possible choices separated by commas> }
enum type_of_fuel{ Gasolina, Gasoleo, Hibrido, Eletrico};