What will be the output of the following C code?
#include <stdio.h>
void foo();
int main()
{
void foo(int);
foo();
return 0;
}
void foo()
{
printf("2 ");
}
#include <stdio.h>
void foo();
int main()
{
void foo(int);
foo();
return 0;
}
void foo()
{
printf("2 ");
}A. 2
B. Compile time error
C. Depends on the compiler
D. Depends on the standard
Answer: Option B

Join The Discussion