Posted Updated a few seconds read (About 75 words)
1 2 3 4 5 6 7 8 9 10 11 12 13
| enum primaryColor { red, yellow, blue = 10, green }; enum primaryColor myColor, myColor2, myColor3; myColor = red; printf("%d\n", myColor); myColor2 = blue; printf("%d\n", myColor2); myColor3 = green; printf("%d\n", myColor3);
_Bool isSameColor = (myColor == myColor2); printf("%d", isSameColor); _Bool isRed = (myColor == red); printf("%d", isSameColor);
|
1 2 3 4 5 6 7
| char broiled; broiled = 'T';
broiled = 65;
char x = '\n';
|