< previous page
page_1072
next page >
Page 1072
while (currPtr != NULL &&
item > currPtr->component)
prevPtr = currPtr;
currPtr = currPtr->link;
Because 60 is greater than 50, this expression is TRUE and the loop body is repeated.
Pointer variables are advanced.
while (currPtr != NULL && item >
currPtr->component)
newNodePtr->link = currPtr;
Because 60 is not greater than 90, the expression is FALSE and the loop body is not repeated.
link
member of
*newNodePtr
now points to
*currPtr
.
< previous page
page_1072
next page >