← Back to archive

Stdle #15 · strings · 2026-06-21

What does this C++ snippet output?

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

#include <iostream>
#include <string>
int main() {
std::string s = "Hello, World";
std::cout << s.find_first_of("aeiou") << "\n";
}
Strings
4 attempts left

Answer & explanation