employer cover photo
employer logo
employer logo

Tata Consultancy Services

Part of Tata Group

Engaged Employer

Tata Consultancy Services Interview Question

What is exception handling in C++?

Interview Answer

Anonymous

Oct 20, 2022

Exceptions are runtime errors and unexpected problems that disrupt the flow of the program. They must be handled efficiently for the normal working of the code as well as to detect them and inform the programmer about what exception occurred. This is where the concept of Exception handling comes to light. It is a mechanism to handle unexpected errors occurring at runtime, and displaying the location and nature if the exception that occurred in the code.