What will be the output of the following C code? [code] #include <stdio.h> enum m{JAN, FEB, MAR}; enum m foo(); int main()

What will be the output of the following C code?
Code:
    #include <stdio.h>
    enum m{JAN, FEB, MAR};
    enum m foo();
    int main()
    {
        enum m i = foo();
        printf("%d\n", i);
    }
    int  foo()
    {
        return JAN;
    }
A. Compile time error
B. 0
C. Depends on the compiler
D. Depends on the standard
 

Tìm kiếm

Back
Top