1 | #include <stdio.h> |
---|---|
2 | |
3 | int main (int argc, char const *argv[]) |
4 | { |
5 | enum days { |
6 | Monday = 10, |
7 | Tuesday, |
8 | Wednesday, |
9 | Thursday, |
10 | Friday, |
11 | Saturday, |
12 | Sunday, |
13 | kNumDays |
14 | }; |
15 | enum days day; |
16 | for (day = Monday - 1; day <= kNumDays + 1; day++) |
17 | { |
18 | printf(format: "day as int is %i\n", (int)day); |
19 | } |
20 | return 0; // Set break point at this line. |
21 | } |
22 |