← Back to archive

Stdle #111 · iteration · 2026-09-25

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 = 2;
switch (x) {
case 1: printf("A");
case 2: printf("B");
case 3: printf("C");
default: printf("D");
}
printf("\n");
return 0;
}
Iteration
4 attempts left

Answer & explanation