← Back to archive

Stdle #139 · iteration · 2026-10-23

What does this C snippet output?

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

#include <stdio.h>
int main(void) {
int a = 1, b = 1;
if (a == 1)
if (b == 2)
printf("X\n");
else
printf("Y\n");
return 0;
}
Iteration
4 attempts left

Answer & explanation