Vidyalelo
C Programming · Q123

Pointer

Programming · C Programming · question 123

Q123

What will be the output of the following C code? #include void f(int); void (*foo)() = f; int main(int argc, char *argv[]) foo(10); return 0; void f(int i) printf("%d ", i);

A.
Compile time error
B.
10
Answer
C.
Undefined behaviour
D.
None of the mentioned

Answer: Option B

Solution

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