Vidyalelo
C Programming · Q100

Pointer

Programming · C Programming · question 100

Q100

What will be the output of the following C code? #include void (*(f)())(int, float); typedef void (*(*x)())(int, float); void foo(int i, float f); int main() x = f; x(); void (*(f)())(int, float) return foo; void foo(int i, float f) printf("%d %f ", i, f);

A.
Compile time error
Answer
B.
Undefined behaviour
C.
1 2.000000
D.
Nothing

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board