Complicated Declarations

Q1: Point out the error in the following program.
#include<stdio.h>
void display(int (*ff)());

int main()
{
    int show();
    int (*f)();
    f = show;
    display(f);
    return 0;
}
void display(int (*ff)())
{
    (*ff)();
}
int show()
{
    printf('AptitudeCrack');
}

A Error: invalid parameter in function display()

B Error: invalid function call f=show;

C No error and prints "AptitudeCrack"

D No error and prints nothing.

ANS:A - Error: invalid parameter in function display()

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.