HOW DO YOU HANDLE EXCEPTIONS IN C?
Answers were Sorted based on User's Feedback
Answer / reejusri
C don't use the term exception handling, but include
facilities that allow implementing similar functionality.
The most common way to implement exception handling in
standard C is to use setjmp/longjmp functions.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / sathish kumar
Hi All,
U can handle exceptions in Unix. In Unix you have signal
handlers to handle the exceptional situations.
For Ex. u have signal SIGQUIT when you press "Ctrl+\" key
to terminate the program
Thanks & Regards
Sathish Kumar
| Is This Answer Correct ? | 0 Yes | 0 No |
Why do we write return 0 in c?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
biggest of two no's with out using if condition statement
how to swap 4 number without using temporary number?
how logic is used
How can I sort more data than will fit in memory?
How are strings stored in c?
How do I access command-line arguments?
Which is more efficient, a switch statement or an if else chain?
While(1) { } when this loop get terminate is it a infinite loop?
Write a program which returns the first non repetitive character in the string?
int x=sizeof(!5.856); What will value of variable x?