Sail E0 Webinar
Question
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;    }
Options:
A .  Compile time error
B .  0
C .  Depends on the compiler
D .  Depends on the standard
Answer: Option A


None.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers