Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void f(int);
    void (*fun)() = f;
    int main(int argc, char *argv[])
    {
    fun(16);
    return 0;
    }
    void f(int k)
    {
    printf("%d\n", k);
    }
    1. Undefined behaviour
    2. Compilation Error
    3. Garbage value
    4. 16
    5. None of these
Correct Option: D

16



Your comments will be displayed only after manual approval.