← Back to archive

Stdle #84 · numbers · 2026-08-29

What does this C snippet output?

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

#include <stdio.h>
int main(void) {
short s = 5;
const char *t = _Generic(s + s,
int: "int", short: "short", default: "other");
printf("%s\n", t);
return 0;
}
Numbers
4 attempts left

Answer & explanation