Top

Discussion

What is the output of code given below?

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.Depends on the compiler
  • C.Depends on the standard

Answer: A

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment