Question: In C 3.4 Task 4 (2 marks) Given the following struct type called CalendarDay: /* task4_calendar_day.h */ typedef struct { char *day_name; /* Sunday. Monday,
In C
3.4 Task 4 (2 marks) Given the following struct type called CalendarDay: /* task4_calendar_day.h */ typedef struct { char *day_name; /* Sunday. Monday, etc./ int date_number; /* 1, 2, ..., 31 */ char *month_name; /* January February, etc */ /* 2020 2021, etc. */ } CalendarDay: 5 0 7 int year: Create two variables of type CalendarDay and initialise them with some appropriate values. Write a C function that determines whether these two CalendarDay variables are equal to each other. (Note: The program should perform comparison on all members of the CalendarDay struct when checking for equality. For string comparisons, you may use the strcmp function from the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
