← Back to archive

Stdle #59 · arrays · 2026-08-04

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[] = "hello";
char *p = s;
printf("%c%c\n", *p, *(p + 4));
return 0;
}
Arrays
4 attempts left

Answer & explanation