logo

Crowdly

Dado el siguiente programa, ¿que afirmación es cierta? 1 #include <iostream> ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Dado el siguiente programa, ¿que afirmación es cierta?

1#include<iostream>

 

2struct test {

3 test() noexcept {}

4 void func() { int i = 20; throw &i; }

5};

 

6int main ()

7{

8 try {

9 test t;

10 t.func();

11 } catch (const int& ex) {

12 std::cerr << "Excepción capturada" << std::endl;

13 }

14 std::cout << "Fin del programa" << std::endl;

15}

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

Want instant access to all verified answers on av03-24-25.uca.es?

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