programming

Syntax

enum color {white = 10, green = 14, red, blue, black = 7, yellow}
indexnamevalue
0white10
1green14
2red15
3blue16
4black7
5yellow8
enum color my_color; - declare variable of type enum color
my_color = red - assign red

Compiler inserts values instead names