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

Join The Discussion