// Demonstration of enum // // Date: 18/09/2024 #include // Define an enum with days of the week // make sure it is outside and before the main function // MON will have value 0, TUE 1, WED 2, etc enum weekdays {MON, TUE, WED, THU, FRI, SAT, SUN}; int main(void) { enum weekdays day; day = MON; // This will print out 5 printf("The day number is %d\n", day); return 0; }