how to define a enum in c
snippet in c

how to define a enum in c

user5462

//enum <name of enumeration> { <possible choices separated by commas> } 
enum type_of_fuel{ Gasolina, Gasoleo, Hibrido, Eletrico};