← Back to archive

Stdle #10 · pointers · 2026-06-16

What does this C snippet output?

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

#include <stdio.h>
int main(void) {
int a[2] = {5, 6};
int *p = a;
int v = (*p)++;
printf("%d %d %d\n", v, a[0], *p);
return 0;
}
Pointers
4 attempts left

Answer & explanation