← Back to archive

Stdle #175 · pointers · 2026-11-28

What does this C snippet output?

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

#include <stdio.h>
void reset(int *p) { *p = 0; }
int main(void) {
int a = 8, b = 9;
reset(&a);
printf("%d %d\n", a, b);
return 0;
}
Pointers
4 attempts left

Answer & explanation