← Back to archive

Stdle #123 · pointers · 2026-10-07

What does this C snippet output?

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

#include <stdio.h>
void tryAdd(int x) { x = x + 100; }
int main(void) {
int n = 7;
tryAdd(n);
printf("%d\n", n);
return 0;
}
Pointers
4 attempts left

Answer & explanation