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.

Sizin İçin Seçtik  How many values can enum hold?

Leave a Reply

Your email address will not be published. Required fields are marked *