← Back to archive

Stdle #71 · iteration · 2026-08-16

What does this C snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

#include <stdio.h>
int main(void) {
int day = 6;
switch (day) {
case 6:
case 7:
printf("weekend\n");
break;
default:
printf("weekday\n");
}
return 0;
}
Iteration
4 attempts left

Answer & explanation