← Back to archive

Stdle #151 · conversions · 2026-11-04

What does this C snippet output?

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

#include <stdio.h>
int main(void) {
int digit = '7' - '0';
printf("%d\n", digit);
return 0;
}
Conversions
4 attempts left

Answer & explanation