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.
C++
C++ Quiz
Start Quiz

or Read more about C++ Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback