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...


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;


printf(“%d\n”, month);



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here