✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Dado el siguiente programa, ¿qué afirmación es cierta?
1#include <iostream> 2class test {3public:4 test(bool b) noexcept : b_{b} {}5 void func() noexcept6 {7 if (!b_) throw "Error en test::func";8 }9private:10 bool b_;11}; 12int main() try13{14 test t(false);15 t.func();16 std::cout << "Fin del programa" << std::endl;17} catch (const char* ex) {18 std::cerr << ex << std::endl;19}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!