Question: Question: Look at the orderhw.c code and DRAW what happens to the linked list containing the DUMMY , and NODES for 1 through 5 as
Question: Look at the orderhw.c code and DRAW what happens to the linked list containing the DUMMY, and NODES for 1 through 5 as it is being printed out.
Is->Dummy->1->2->3->4->5NULL
Orderhw.c code:
/****************FUNCTION PRNTLIST********************/
void prntlist(LISTREC *liststart)
/*argument is a pointer to type LISTREC*/
{ /*begin function*/
while (liststart != NULL)
{ /*begin while*/
printf("%s ",liststart->info.name);
liststart = liststart->link;
} /*end while*/
} /* end function prntlist*/
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
