Question: *Program is in C* Declare a structure called Date to store information for dates. Include day (int), month(int) and year(int) in the structure. Implement the

*Program is in C*
Declare a structure called Date to store information for dates. Include day (int), month(int) and year(int) in the structure. Implement the following functions that use the structure Date. int before(struct Date d1, struct Date d2); int within30days(struct Date d1, struct Date d2); The function before returns 1 if dl is before d2 and 0 otherwise. The function within30days returns 1 if d1 and d2 are within 30 days of eachother and 0 otherwise. The parameters for this function need not be in order and d1 could be before d2 or after d2. You can assume that each month is 30 days for this function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
