← Back to archive

Stdle #128 · numbers · 2026-10-12

What does this C++ snippet output?

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

#include <iostream>
int main() {
int n = -5;
bool b = n;
std::cout << b << "\n";
}
Numbers
4 attempts left

Answer & explanation