← Back to archive

Stdle #47 · numbers · 2026-07-23

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("%s\n", x % 2 == 0 ? "even" : "odd");
return 0;
}
Numbers
4 attempts left

Answer & explanation