← Back to archive

Stdle #50 · conversions · 2026-07-26

What does this C snippet output?

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

#include <stdio.h>
int main(void) {
float f = 2.5f;
printf("%d\n", (int)f + (int)f);
return 0;
}
Conversions
4 attempts left

Answer & explanation