← Back to archive

Stdle #84 · numbers · 2026-08-29

What does this C++ snippet output?

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

#include <iostream>
int main() {
auto x = 'A';
std::cout << sizeof(x) << " "
<< (x + 1) << "\n";
}
Numbers
4 attempts left

Answer & explanation