prev

Enumerations

next
  1. A list of constant integer values
  2. Has the syntax : enum <name> { <name1>, <name2>, ... }

  3. The first name will be given the value 0, the second will be given the value 1, and so on.

  4. Explicit values can be given to the names by specifying the value.

  5. Examples