← Back to archive

Stdle #65 · numbers · 2026-08-10

What does this C++ snippet output?

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

#include <iostream>
int main() {
int x = 13;
std::cout << (x & 1) << " " << ((x >> 1) & 1) << "\n";
}
Numbers
4 attempts left

Answer & explanation