Multiple choice

What can be said of the following program? main() { enum Months {JAN =1,FEB,MAR,APR}; Months X = JAN; if(X==1) { printf(Jan is the first month);
} }

  1. a) Does not print anything

  2. b) Prints : Jan is the first month

  3. c) Generates compilation error

  4. d) Results in runtime error

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

c