GeekInterview.com
Series: Subject: Topic:
Question: 53 of 238

Types of Exceptions in C

What are all the type of Exceptions available in C ?
Asked by: john abraham | Member Since Mar-2008 | Asked on: Mar 26th, 2008

View all questions by john abraham

Showing Answers 1 - 1 of 1 Answers
jbode

Answered On : Feb 1st, 2011

View all answers by jbode

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. 

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.