exception

A

anjna22

Can anyone describe with example : exception(s) thrown by the function
that must be handled by other functions, and explain the conditions
causing the exception(s) to be thrown.

Thanks
 
I

Ian Collins

Can anyone describe with example : exception(s) thrown by the function
that must be handled by other functions, and explain the conditions
causing the exception(s) to be thrown.
C doesn't support exceptions. Were you looking for comp.lang.c++?
 
L

Laurent Deniau

They are also supported by C89
What does it have to do with exceptions?

This is one way (low-level layer) to implement the exception mechanism.

a+, ld.
 
K

Keith Thompson

Mohan said:
what about setjmp and longjmp, are not they supported in C99?

setjmp() and longjmp() are supported in both C90 and C99.

There's some similarity between setjmp/longjmp and exceptions, but
that's not what the original poster was asking about.
 
L

lovecreatesbea...

Can anyone describe with example : exception(s) thrown by the function
that must be handled by other functions, and explain the conditions
causing the exception(s) to be thrown.

Check every function return code carefully, this is the way used
frequently for handling error / exceptional cases in C.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top