Will the next code be compiled?
typedef int my_int;

struct A {
  A() throw(int, my_int) {}
Yes, because the types on the exception list can be repeated.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
C++ quizzes
Sign Up Now
or Subscribe for future quizzes