-
What will be the output of the following C code?
#include <stdio.h>
void first(int (*x)(int));
int second(int i);
int (*third)(int) = second;
int main()
{
first(third(13));
}
void first(int (*k)(int))
{
k(12);
}
int second(int k)
{
printf("%d\n", k);
return k;
}
-
- Compilation Error
- Nothing
- Garbage value
- Segmentation fault
- None of these
Correct Option: D
Segmentation fault