← Back to archive

Stdle #177 · arrays · 2026-11-30

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

Answer & explanation