Implement the function unsigned int calculateYear(Date d) to calculate a value based on the year
Fantastic news! We've Found the answer you've been seeking!
Question:
Implement the function "unsigned int calculateYear(Date d)" to calculate a value based on the year of the given date in the structure "d". The function should return the computed value, which is of type unsigned integer.
The function should do the following:
Return "year - 1": if the "month" is January or February.
Return "year": if the "month" is notJanuary or February.
In C language please, not C++, and Just the function please! No need for a main.
Related Book For
Posted Date: