← Back to archive

Stdle #147 · iteration · 2026-10-31

What does this C snippet output?

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

#include <stdio.h>
int main(void) {
int x = 3;
switch (x) {
case 3: printf("3");
case 4: printf("4");
break;
case 5: printf("5");
}
printf("\n");
return 0;
}
Iteration
4 attempts left

Answer & explanation