← Back to archive

Stdle #150 · iteration · 2026-11-03

What does this C snippet output?

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

#include <stdio.h>
int main(void) {
int code = 2;
switch (code) {
case 1: printf("one ");
case 2: printf("two ");
case 3: printf("three ");
case 4: printf("four ");
}
printf("\n");
return 0;
}
Iteration
4 attempts left

Answer & explanation