Vidyalelo
C Programming · Q214

Function

Programming · C Programming · question 214

Q214

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

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

Answer: Option B

Solution

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