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

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes