Introduction to Exception Handling by R4R Team

What is Exception:

Exception is simply the runtime error which can be generated dur to some logical problem and mathematical problem.
-Means those error which can not be solve in pen and paper also.
Like:
Division by 0.
Array access out of range.
Etc.

Exception Handling:
At the time of exception how we can train our compiler to react positively without termination is known as Exception handling.

Exception Handling in C:
-Basically, C does not provide direct support to exceptional handling (or error handling).
-there are ways through which error handling can be done in C. A programmer has to prevent errors at the first place and test return values from the functions.




Leave a Comment: