← Back to archive

Stdle #161 · arrays · 2026-11-14

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[3][2] = {{0}};
int *p = &a[0][0];
*(p + 3) = 9;
printf("%d\n", a[1][1]);
return 0;
}
Arrays
4 attempts left

Answer & explanation