← Back to archive

Stdle #125 · conversions · 2026-10-09

What does this C++ snippet output?

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

#include <iostream>
int main() {
unsigned int u = 5;
int s = -1;
std::cout << (s < u) << "\n";
return 0;
}
Conversions
4 attempts left

Answer & explanation