Hello, I need some help with a function in C. I just can\'t figure it out.I have
ID: 3618276 • Letter: H
Question
Hello,
I need some help with a function in C. I just can't figure it out.I have to write a function (call from function #2) that calculatesthe Calendar date given a Day-of-year and a year USING THEARRAY OF DAYS PER MONTH. YOU MUST traverse the ARRAY OFDAYS PER MONTH to find the correct month! The year will beused to determine if it's a leap year (call 5. below), so you'lladd 1 to the days for February if it is a leap year. Assignto "reference parameters" (pointer parameters in C) the month andday.
void calculateCalendarDate ( int daysOfMonth [],int dayOfYear, int *month, int *day, int year )
{
}
Thanks!