logo

Crowdly

Browser

Add to Chrome

Why doesn't the catch block receive the exception, and what happens instead? ...

✅ 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";    }}

0%
0%
0%
100%
More questions like this

Want instant access to all verified answers on courses.apriorit.com?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome