← Back to archive

Stdle #95 · iteration · 2026-09-09

What does this C snippet output?

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

#include <stdio.h>
int main(void) {
int v = 0;
if (v)
if (v == 1) printf("one\n");
else printf("other\n");
else
printf("zero\n");
return 0;
}
Iteration
4 attempts left

Answer & explanation