...

/

Challenge: Compare Two Given Dates

Challenge: Compare Two Given Dates

Apply what you’ve learned about structures in the coding exercises in this lesson.

Problem statement

In this challenge, you will have to implement the compareDates function.

int compareDates(struct date d1, struct date d2);

Write a function that compares two given dates. If the dates are equal, then the function should ...