Question: oid display _ days ( struct day * day _ one, struct day * current _ day ) { struct day * current = day
oid displaydaysstruct day dayone, struct day currentday
struct day current dayone;
Iterate through all days
while current NULL
Check if the current day is the current day
int iscurrent current currentday;
Calculate the total income for the current day
double income totalincomecurrent;
Calculate the most popular signature crepe for the current day
char mostpop calculatemostpopularsignaturecurrentorders;
Print the information for the current day
printsingledayiscurrent, currentdate, mostpop, income;
Move to the next day if it exists
if currentnext NULL
printarrow;
current currentnext;
else
break; Exit the loop if currentnext is NULL
it keeps saying my currentnext is uninitialised. I dont know what to do
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
