HOW DO YOU HANDLE EXCEPTIONS IN C?

Answers were Sorted based on User's Feedback



HOW DO YOU HANDLE EXCEPTIONS IN C? ..

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

HOW DO YOU HANDLE EXCEPTIONS IN C? ..

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

Post New Answer

More C Interview Questions

what is the purpose of the code, and is there any problem with it. unsigned int v[10]; unsigned int i = 0; while (i < 10) v[i] = i++;

2 Answers   Google,


When is a null pointer used?

0 Answers  


What is #include conio h?

0 Answers  


Tell me with an example the self-referential structure?

0 Answers  


What are bit fields? What is their use?

2 Answers   Adobe,






What is extern c used for?

0 Answers  


Explain the difference between exit() and _exit() function?

0 Answers  


what is the height of tree if leaf node is at level 3. please explain

0 Answers  


Why doesn't the code "int a = 1000, b = 1000; long int c = a * b;" work?

7 Answers  


Q-1: Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college.

8 Answers  


how can you print&scan anything using just one character? :) HINT: printf,scanf similer

2 Answers  


Find greatest of two numbers using macro

4 Answers   Bosch, Siemens,


Categories