← Back to archive

Stdle #13 · quirks · 2026-06-19

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 = 5;
int y = x++ + 1;
int z = ++x + 1;
printf("x=%d y=%d z=%d\n", x, y, z);
return 0;
}
Quirks
4 attempts left

Answer & explanation