Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void (*(fun)())(int, float);
    void (*(*A)())(int, float) = fun;
    void ((*B)(int, float));
    void function(int j, float fun);
    int main()
    {
    B = A();
    B(11, 21);
    }
    void (*(fun)())(int, float)
    {
    return function;
    }
    void function(int j, float fun)
    {
    printf("%d %f\n", j, fun);
    }
    1. 11 21.000000
    2. Compilation Error
    3. Undefined behaviour
    4. Garbage value
    5. None of these
Correct Option: A

11 21.000000



Your comments will be displayed only after manual approval.