← Back to archive

Stdle #34 · quirks · 2026-07-10

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

Answer & explanation