← Back to archive

Stdle #170 · conversions · 2026-11-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 n = (int)2.5 + (int)2.5;
printf("%d\n", n);
return 0;
}
Conversions
4 attempts left

Answer & explanation