← Back to archive

Stdle #70 · pointers · 2026-08-15

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[4] = {2, 4, 6, 8};
printf("%d\n", *(a + 2) + a[1]);
return 0;
}
Pointers
4 attempts left

Answer & explanation