Question: Write a function in C programming not C++: int days_in_month(int month, int year); which is given a month and year and returns the number of
Write a function in C programming not C++: int days_in_month(int month, int year);
which is given a month and year and returns the number of days in that month. You should use your is_leap() function as needed to determine the number of days in the month (February has an extra day in leap years). Put the code for the function days_in_month() in the file days.c, and the prototype in the file days.h
Write a driver, main(), to ask the user to enter the month and year (use EOF to terminate the program) and prints the number of days. Put the driver in the file driver2.c. You will compile this program with the command: make driver2
which will compile and link the source files days.c leap.c and driver2.c to create an executable called driver2.
I also need help creating a days.c file and days.h file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
