← Back to archive

Stdle #106 · conversions · 2026-09-20

What does this C++ snippet output?

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

#include <iostream>
#include <string>
int main() {
std::string s = "hi";
s += 33;
std::cout << s << "\n";
return 0;
}
Conversions
4 attempts left

Answer & explanation