← Back to archive

Stdle #48 · comparisons · 2026-07-24

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 = 8;
x >>= 1;
x <<= 2;
printf("%d\n", x);
return 0;
}
Comparisons
4 attempts left

Answer & explanation