Stdle #69 · containers · 2026-08-14
What does this C++ snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
#include <iostream>#include <vector>int main() { std::vector<int> v = {1, 2, 3}; v.push_back(4); std::cout << v.size() << " " << v.back() << "\n";}Containers