Write a program to store a date in an optimized structure that includes properly-sized bit fi elds.
The program accepts a date as three integers in the form dd mm yyyy and prints the values
using the structure.
Correct the following code so as to print 5 for MAY and 12 for DEC:
enum E {JAN, FEB, MAR, APR, MAY, JUN, DEC};
E month;
month = MAY;
printf(“%d\n”, month);
month = DEC;
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here