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

Giang Phạm

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

Tìm kiếm

Back
Top