Types of Exceptions in C

What are all the type of Exceptions available in C ?

Questions by john abraham

Showing Answers 1 - 3 of 3 Answers

C does not support exceptions. 

C does support asynchronous signals, which may be used to fake exception handling.  The signals defined by the standard are:

SIGABRT: abnormal termination
SIGFPE: erroneous arithmetic operation such as divide by 0
SIGILL: illegal instruction
SIGINT: receipt of interactive attention signal
SIGSEGV: invalid memory access
SIGTERM: termination request sent to program

An implementation may define additional signal values. 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions