Discussion :: Complicated Declarations
-
Point out the error in the following program.
#include void display(int (*ff)()); int main() { int show(); int (*f)(); f = show; display(f); return 0; } void display(int (*ff)()) { (*ff)(); } int show() { printf("Freshergate"); }
|
A.
Error: invalid parameter in function display() |
|
B.
Error: invalid function call f=show; |
|
C.
No error and prints "Freshergate" |
|
D.
No error and prints nothing. |
Answer : Option C
Explanation :
No answer description available for this question.
Be The First To Comment

Whatsapp
Facebook