Answered step by step
Verified Expert Solution
Question
1 Approved Answer
*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 functionStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started