Will the following code compile?
struct A {
  A() { throw 0; }
};
Explanation
Yes, since exceptions can be thrown from inside the constructors

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з C++
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести