logo

Crowdly

Який буде результат виконання цього коду? Введіть відповідь точно так, як зазнач...

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

Який буде результат виконання цього коду?

Введіть відповідь точно так, як зазначено у варіантах екзамену.

#include <iostream>

#include <stdexcept>

using namespace std;

int main() {

int age = -1;

if (age < 0) throw invalid_argument("bad age");

cout << age;

return 0;

}

More questions like this

Want instant access to all verified answers on e-learning.lnu.edu.ua?

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