saving . . . saved Exception handling has been deleted. Exception handling has been hidden .
Exception handling
Title
Question
what is exception handling in c++?


Advanced-Cpp Exception-Handling 02-03 min 0-10 sec 12-12-17, 3:18 p.m. Revathi_29.N

Answers:

This is explained in the tutorial available on this link.
https://spoken-tutorial.org/watch/Advanced%2BCpp/Exception%2BHandling/English/
24-03-19, 9:43 p.m. nancy

An exception is a problem that arises during the execution of a program. A C++ exception is a response to an exceptional circumstance that arises while a program is running, such as an attempt to divide by zero.

Exceptions provide a way to transfer control from one part of a program to another. C++ exception handling is built upon three keywords: <span style="font-weight: 640;">try, catch,</span> and <span style="font-weight: 640;">throw</span>.


04-05-21, 4:47 p.m. saravana_7528

Login to add comment


<span style="color: rgb(0, 0, 0); font-family: Roboto, sans-serif, Arial, Verdana, Tahoma; font-size: 16px; background-color: rgb(255, 255, 255);">Exceptions allow a method to react to exceptional circumstances and errors (like runtime errors) within programs by transferring control to special functions called handlers. For catching exceptions, a portion of code is placed under exception inspection. Exception handling was not a part of the original C++. It is a new feature that ANSI C++ included in it. Now almost all C++ compilers support this feature. Exception handling technology offers a securely integrated approach to avoid the unusual predictable problems that arise while executing a program.</span>
29-02-20, 10:33 a.m. sarvani.anandarao@gmail.com


Exception handling in C++ provides you with a way of handling unexpected circumstances like runtime errors. So whenever an unexpected circumstance occurs, the program control is transferred to special functions known as handlers. 

To catch the exceptions, you place some section of code under exception inspection. The section of code is placed within the try-catch block. 

If an exceptional situation occurs within that section of code, an exception will be thrown. Next, the exception handler will take over control of the

24-08-21, 3:24 a.m. Vijay1122


Log-in to answer to this question.