< previous page page_1072 next page >

Page 1072
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
while (currPtr != NULL &&
item > currPtr->component)


prevPtr = currPtr;
currPtr = currPtr->link;
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Because 60 is greater than 50, this expression is TRUE and the loop body is repeated.
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Pointer variables are advanced.
1072-01.gif
while (currPtr != NULL && item >
currPtr->component)
newNodePtr->link = currPtr;
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
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.
1072-02.gif

 
< previous page page_1072 next page >