1.

What is the type declared by the header file signal.h?(a) sig_atomic_t(b) sig_signal_t(c) sig_signal_h(d) sig_stomic_hI had been asked this question during a job interview.I need to ask this question from Signal Handling topic in chapter C Library of C

Answer»

The CORRECT ANSWER is (a) sig_atomic_t

The EXPLANATION is: The only type declared in signal.h is sig_atomic_h.

This is of int type and USED as a variable in signal HANDLING.



Discussion

No Comment Found

Related InterviewSolutions