← Back to archive

Stdle #32 · numbers · 2026-07-08

What does this C snippet output?

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

#include <stdio.h>
int main(void) {
int q = -7 / 2, r = -7 % 2;
printf("%d\n", q * 2 + r);
return 0;
}
Numbers
4 attempts left

Answer & explanation