In the c library function void (*signal(int sig, void (*func)(int)))(int), which statement is true with respect to func?
A. func is a pointer to the function
B. func is pointer to sig
C. func is a static variable
D. func is a pointer that points to all type of data
Answer: a
Explanation: The declaration of the function signal() is given by
void (*signal(int sig, void (*func)(int)))(int). In this ‘func’ is a pointer to the function defined by the programmer or one of the following predefined functions:
SIG_DFL and SIG_IGN.