← Back to archive

Stdle #53 · arrays · 2026-07-29

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

Answer & explanation