← Back to archive

Stdle #90 · pointers · 2026-09-04

What does this C snippet output?

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

#include <stdio.h>
int main(void) {
const char *s = "cat";
s = "dog";
printf("%s\n", s);
return 0;
}
Pointers
4 attempts left

Answer & explanation