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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!