← Back to archive

Stdle #109 · arrays · 2026-09-23

What does this C snippet output?

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

#include <stdio.h>
void show(int *p) { printf("%d\n", p[1]); }
int main(void) {
int a[3] = {5, 6, 7};
show(a);
return 0;
}
Arrays
4 attempts left

Answer & explanation