1.

void (*signal(int sig, void (*func)(int)))(int);If the value of func is SIG_IGN then _________(a) the signal will be ignored(b) default handling for that signal will occur(c) The signal() function will fail to execute(d) the signal will be ignoredI have been asked this question by my college professor while I was bunking the class.My enquiry is from Signal Handling topic in section C Library of C

Answer»

The correct answer is (a) the signal will be ignored

Easy EXPLANATION - SIG_IGN is one of the WAYS in signal() function in which receipt of the signal NUMBER SIG is subsequently handled. The signal will be ignored if the value of FUNC is SIG_IGN.



Discussion

No Comment Found

Related InterviewSolutions