Will the following code compile?

void Test() {
  int i = 1;
  try {
    i = 3;
  }
}
Explanation
Try block must be followed by at least one catch block.

Follow CodeGalaxy

Mobile Beta

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