1.

What will be the output of the following C code?
 #include <stdio.h>
void (*(fun)())(int, float);
typedef void (*(*A)())(int, float);
void function(int k, float fun);
int main()
{
A = fun;
A();
}
void (*(fun)())(int, float)
{
return function;
}
void function(int k, float fun)
{
printf("%d %f n", k, fun);
}

A. Compilation Error
B. Garbage value
C. Nothing
D. Undefined behaviour
E. None of these
Answer» B. Garbage value


Discussion

No Comment Found