✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Why doesn't the catch block receive the exception, and what happens instead?#include <iostream>#include <stdexcept> void Foo() noexcept{ throw std::runtime_error("oops");} int main(){ try { Foo(); } catch (...) { std::cout << "caught"; }}