← Back to archive

Stdle #66 · conversions · 2026-08-11

What does this C++ snippet output?

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

#include <iostream>
int main() {
if ("hello")
std::cout << "truthy\n";
else
std::cout << "falsy\n";
return 0;
}
Conversions
4 attempts left

Answer & explanation