Q234
What will be the output of the following C code? #include void f(int (*x)(int)); int myfoo(int i); int (*foo)(int) = myfoo; int main() f(foo(10)); void f(int (*i)(int)) i(11); int myfoo(int i) printf("%d ", i); return i;
A.
Compile time error
B.
Undefined behaviour
C.
10 11
D.
10 Segmentation fault
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board