Vidyalelo
C Programming · Q125

Pointer

Programming · C Programming · question 125

Q125

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 p = f; p(); void (*(f)())(int, float) return foo; void foo(int i, float f) printf("%d %f ", i, f);

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

Answer: Option D

Solution

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