What will be the output of the following C code?
#include <stdio.h>
void f(int);
void (*foo)(float) = f;
int main()
{
foo(10);
}
void f(int i)
{
printf("%d\n", i);
}
#include <stdio.h>
void f(int);
void (*foo)(float) = f;
int main()
{
foo(10);
}
void f(int i)
{
printf("%d\n", i);
}
A. Compile time error
B. 10
C. 10.000000
D. Undefined behaviour
Answer: Option D
Join The Discussion