What is enum used for in C?

Enumeration or Enum in C is a special kind of data type defined by the user. It consists of constant integrals or integers that are given names by a user. The use of enum in C to name the integer values makes the entire program easy to learn, understand, and maintain by the same or even different programmer.

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

Leave a Reply

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