1
2
3
4
5
6
7
8
9
10
11
12
13
enum primaryColor { red, yellow, blue = 10, green };  // defining enum
enum primaryColor myColor, myColor2, myColor3; // defining a variable
myColor = red;
printf("%d\n", myColor); // 0
myColor2 = blue;
printf("%d\n", myColor2); // 10
myColor3 = green;
printf("%d\n", myColor3); // 11

_Bool isSameColor = (myColor == myColor2);
printf("%d", isSameColor); // 0, false
_Bool isRed = (myColor == red);
printf("%d", isSameColor); // 1, true
1
2
3
4
5
6
7
char broiled;
broiled = 'T';
//broiled = T; //think T is a varible
//broiled = "T"; //think "T" is a string
broiled = 65;

char x = '\n'; // newline