Are enums just integers?

The C standard grants the freedom to use different integer types to represent different enumeration types, but most compilers just use int to represent all enumeration types . Treating enumerations as just integers leads to some useful behaviors.

Read more