C++ | Exception Handling | Question 2

Last Updated :
Discuss
Comments
What is the advantage of exception handling ?
  1. Remove error-handling code from the software's main line of code.
  2. A method writer can choose to handle certain exceptions and delegate others to the caller.
  3. An exception that occurs in a function can be handled anywhere in the function call stack.
Only 1
1, 2 and 3
1 and 3
1 and 2
Share your thoughts in the comments