Practice · 2 of 4
Weekend Check
CHALLENGE
Difficulty: beginner+25 XP
Given typedef enum { MON, TUE, WED, THU, FRI, SAT, SUN } Day; in scope, implement int is_weekend(Day d) returning 1 for SAT or SUN, else 0.
Press Submit to check your solution.
Back to lesson: Practice: Enum Practice