Lesson 20 of 50
cEnumerations (`enum`)
6 mins
Course progress40%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 20 of 50
c6 mins
Keep these ideas in mind as you work through the lesson.
enum defines a set of named integer constants.
enum Color { RED, GREEN = 5, BLUE };
// RED=0, GREEN=5, BLUE=6