← Back to archive

Stdle #141 · quirks · 2026-10-25

What does this C snippet output?

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

#include <stdio.h>
int main(void) {
int i = 1, j = 1;
int both = (i++ < 0) && (j++ > 0);
printf("both=%d i=%d j=%d\n", both, i, j);
return 0;
}
Quirks
4 attempts left

Answer & explanation