← Back to archive

Stdle #100 · quirks · 2026-09-14

What does this C snippet output?

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

#include <stdio.h>
int main(void) {
int seen = 0;
int v = 1 ? 42 : ++seen;
printf("v=%d seen=%d\n", v, seen);
return 0;
}
Quirks
4 attempts left

Answer & explanation