-
What will be the output of the following C code?
#include <stdio.h>
void first(int (*p)(int));
int second(int);
int (*funptr)(int);
int ((*fun(int)))(int);
int main()
{
funptr = fun(0);
funptr(15);
}
int ((*fun(int k)))(int)
{
return second;
}
int second(int k)
{
printf("%d\n", k + 1);
}
-
- 15
- Compilation Error
- Undefined behaviour
- 16
- None of these
Correct Option: D
16