The values of enumerators can be accessed using the dot operator (.) with the enum variable name followed by the enumerator name.
Here's an example:
enum Weekdays {
MONDAY,
TUESDAY,
// ...
};
enum Weekdays today = TUESDAY;
printf("Today is %d\n", today);