← Back to archive

Stdle #160 · pointers · 2026-11-13

What does this C snippet output?

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

#include <stdio.h>
int main(void) {
char s[] = "ABCDE";
char *p = s + 2;
printf("%c%c\n", *p, *(p + 1));
return 0;
}
Pointers
4 attempts left

Answer & explanation