← Back to archive

Stdle #126 · pointers · 2026-10-10

What does this C snippet output?

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

#include <stdio.h>
void advance(int **pp) { *pp += 1; }
int main(void) {
int a[3] = {41, 42, 43};
int *p = a;
advance(&p);
printf("%d\n", *p);
return 0;
}
Pointers
4 attempts left

Answer & explanation