Hi All,
I'm a beginner in C.
When I read a code about "program which has day of the year and month day" in reference. I'm confuse in the code(in red color). this is an argument? or condition?
Code:void month_day(int year, int yearday)
{
int i, leap;
leap = year % 4 == 0 && year % 100 != 0 || year % 400 == 0;
for (i = 1; yearday > daytab[leap][i]; i++)
yearday -= daytab[leap][i];
printf("Month: %d, Day: %d\n", i, yearday);
}