Unformatted text preview: – 1 . In a linked list we use a variable of the same type as the next part of the node; let’s call it current . current is initialized to list , the first node in the list. info(current) accesses the user’s data in the node and next(current) accesses the pointer part of the node. To move to the next node in the list, we set current to next(current) . The last item has been accessed when current is equal to null ....
View Full Document
This note was uploaded on 01/13/2011 for the course CSE 1550 taught by Professor Marianakant during the Fall '10 term at York University.
- Fall '10