← Back to archive

Stdle #8 · 2026-06-14

What does this log?

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

#include <stdio.h>
int main(void) {
int r = 0;
for (int a = 0, b = 1; a < 5; a++, b *= 2)
r = b;
printf("%d\n", r);
return 0;
}
Iteration
4 attempts left

Answer & explanation