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