Need help thank you Declare a tag for an enumeration whose v

Need help, thank you
Declare a tag for an enumeration whose values represent the twelve months of the year. b) Use typedef to define a name for enumeration of part (a).

Solution

a)
enum month {
January,
february,
March,
April,
May,
June,
July,
August,
September,
Octomber,
November,
December
};


b)


typedef enum month {
January,
february,
March,
April,
May,
June,
July,
August,
September,
Octomber,
November,
December
}month;

Need help, thank you Declare a tag for an enumeration whose values represent the twelve months of the year. b) Use typedef to define a name for enumeration of p

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site