|
|
|
|
|
|
|
Execution of this call pauses until the recursive call with actual parameter fromPtr->link has been completed. |
|
|
|
|
|
|
|
|
Call 3: fromPtr points to the node containing 58 and is not NULL. A new node is allocated and its component value is set to 58. |
|
|
|
|
|
|
|
|
Execution of this call pauses until the recursive call with actual parameter fromPtr->link has been completed. |
|
|
|
|
|
|
|
|
Call 4: fromPtr is NULL. The list is unchanged. |
|
|
|
|
|
|
|
|
Execution of this call is complete. NULL is returned as the function value to the preceding call. |
|
|
|
|
|
|
|
|
Call 3: Execution of this call resumes by assigning the returned function value (NULL) to toPtr->link. |
|
|
|
|
|
|
|
|
Execution of this call is complete. The value of toPtr is returned to the preceding call. |
|
|
|
|
|
|
|
|
Call 2: Execution of this call resumes by assigning the returned function value (the address of the third node) to toPtr->link. |
|
|
|
|
|