← Back to archive

Stdle #49 · conversions · 2026-07-25

What does this C snippet output?

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

#include <stdio.h>
int main(void) {
double d = 5;
d = d / 2;
int n = d;
printf("%d %.1f\n", n, d);
return 0;
}
Conversions
4 attempts left

Answer & explanation