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

or Read more about C++ Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback