← Back to archive

Stdle #168 · quirks · 2026-11-21

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 = 0, b = 0;
(a = 0) && (b = 4);
printf("a=%d b=%d\n", a, b);
return 0;
}
Quirks
4 attempts left

Answer & explanation