Question: please help C Program 1. Write a program that prompts the user to enter two dates (mm/dd/yy), that each date entered by the user is
1. Write a program that prompts the user to enter two dates (mm/dd/yy), that each date entered by the user is stored in a date structure (contains three members: month, day, and year (all type int)). 2. Then call the function int compare_dates(struct date di, struct date d2), which will compare two dates dl and d2 and returns - 1 if dl is an earlier date than d2, +1 if dl is a later date than d2, and 0 if dl and d2 are the same. 3. Using a loop, generalize the problem. By entering 0/0/0 the user indicates that he/she is done entering
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
