Vidyalelo
C Programming · Q109

Function

Programming · C Programming · question 109

Q109

What will be the output of the following C code? #include void foo(); int main() void foo(int); foo(1); return 0; void foo(int i) printf("2 ");

A.
2
Answer
B.
Compile time error
C.
Depends on the compiler
D.
Depends on the standard

Answer: Option A

Solution

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