-
What will be the output of the following C code?
#include <stdio.h>
void A(int (*n)(int));
int B(int);
int (*P)() = B;
int main()
{
A(P);
}
void A(int(*j)(int ))
{
j(121);
}
int B(int j)
{
printf("%d\n", j);
return j;
}
-
- Compilation Error
- Segmentation fault
- Garbage value
- 121
- None of these
Correct Option: D
121