Examveda

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 ");
}

A. 2 2

B. 2

C. Compile time error

D. Depends on the compiler

Answer: Option D


This Question Belongs to C Program >> Function

Join The Discussion

Related Questions on Function