Vidyalelo
C Programming · Q252

Pointer

Programming · C Programming · question 252

Q252

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

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

Answer: Option A

Solution

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