Trần Thu Hằng
Member
What will be the output of the following C code?
A. Compile time error
B. 0
C. Depends on the compiler
D. Depends on the standard
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;
}
B. 0
C. Depends on the compiler
D. Depends on the standard