go to previous page   go to home page   hear noise

Answer:

No. You have to go through the list link by link. (Actually, in the hand-coded list, above, you could calculate where the fourth node was, but in general this can't be done.)

This is one of the disadvantages of linked lists.


End of the Chapter

Here is a list of links. Click a link to go to its discussion.


go to previous page   go to home page