← Back to archive

Stdle #64 · arrays · 2026-08-09

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

Answer & explanation