Question: f). What does the following do? enum MonthType (JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC) MonthType thisMonth; MonthType lastMonth; lastMonth
f). What does the following do? enum MonthType (JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC) MonthType thisMonth; MonthType lastMonth; lastMonth OCT; thisMonth = Nov; lastMonth = thisMonth, MonthType thisMonth; switch (thisMonth)// Using enum type switch expression f case JAN : case FEB case MAR cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
