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 CIn C 3.4 Task 4 (2 marks) Given the following struct type

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 library as described in Section 2.4.3.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!