Ok got a confusing assignment here.
Instructions are to ask user for current date (month, day, year) and program calculates time passed since Jan 1 2000. We are to assume 1) each year has 365 days 2) each month has 30 days.
Limit to use of basic arrays and pointers. Just basic C stuff.
First function prototype called from main:
// this function is to take information about current date entered on keyboard and information about month, day, year is passed back to main()Code:void enter_datea(int *, int *, int *);
My question here is why are pointers necessary???
What are each pointer pointing to???
Second funtion prototype called from main:
//this function takes information about the current date and calculates the time elapsed since January 1, 2000. Time should be calculated in DAYS and HOURS and passed back to main()Code:void time_elasped(int , int, int , int *, int *);
Now if you're only entering in months, days, years, how would you know the exact hour??? And how come three integers and 2 pointers passed???
I would appreciate just a bit of a start to get me going here.