← Back to archive

Stdle #61 · numbers · 2026-08-06

What does this C++ snippet output?

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

#include <iostream>
#include <type_traits>
int main() {
auto x = 7L;
auto y = 2;
std::cout << x / y << " "
<< std::is_same_v<decltype(x / y), long>
<< "\n";
}
Numbers
4 attempts left

Answer & explanation