← Back to archive

Stdle #81 · quirks · 2026-08-26

What does this C snippet output?

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

#include <stdio.h>
int main(void) {
int lo = 0, hi = 6;
for (; lo < hi; lo++, hi--)
;
printf("lo=%d hi=%d\n", lo, hi);
return 0;
}
Quirks
4 attempts left

Answer & explanation