Vidyalelo
C Programming · Q115

Pointer

Programming · C Programming · question 115

Q115

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

A.
1 2.000000
Answer
B.
1 2
C.
Compile time error
D.
Segmentation fault/code crash

Answer: Option A

Solution

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