← Back to archive

Stdle #172 · strings · 2026-11-25

What does this C snippet output?

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

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

Answer & explanation