← Back to archive

Stdle #97 · storage · 2026-09-11

What does this C snippet output?

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

#include <stdio.h>
void f(void) {
int auto_v = 5;
static int stat_v = 5;
auto_v++;
stat_v++;
printf("%d %d\n", auto_v, stat_v);
}
int main(void) {
f();
f();
return 0;
}
Storage
2 lines
4 attempts left

Answer & explanation