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

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

Tìm kiếm

Back
Top