Home » C++ Programming » Exception Handling » Question
  1. Why is it expensive to use objects for the exception?
    1. Because of execution time
    2. Memory space involved in creating an exception object
    3. Exception object is created only if an error actually happens
    4. All of above
    5. None of these
Correct Option: C

If an error occurs in the program, then only exception object is created otherwise, It will not be created. So it’s expensive to use in the program.



Your comments will be displayed only after manual approval.