← Back to archive

Stdle #60 · comparisons · 2026-08-05

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 = 1, b = 2, c = 3;
int r = a + b * c - 4 / 2;
printf("%d\n", r);
return 0;
}
Comparisons
4 attempts left

Answer & explanation