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 |
Explain what is the general form of a c program?
What is an expression?
int a=0,b=2; if (a=0) b=0; else b=*10; What is the value of b ?
write a program to find the number of even integers and odd integers in a given array in c language
13 Answers IAI Cameroun, NIIT, Olive Tech, QIS,
write a recursive program in'c'to find whether a given five digit number is a palindrome or not
What is nested structure?
What is the auto keyword good for?
main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?
List some of the dynamic data structures in C?
What is getche() function?
1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
f(x,y,z) { y = y+1; z = z+x; } main() { int a,b; a = 2 b = 2; f(a+b,a,a); print a; } what is the value of 'a' printed