What will be the output of the following C code? [code] #include <stdio.h> int main() { void foo(); void f()

What will be the output of the following C code?
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
 

Tìm kiếm

Back
Top