← Back to archive

Stdle #176 · numbers · 2026-11-29

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

Answer & explanation