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

Nothing



Your comments will be displayed only after manual approval.