After several nodes have been created and they all have been linked up. How would you later access say the 5th node in a 8 node list?
Printable View
After several nodes have been created and they all have been linked up. How would you later access say the 5th node in a 8 node list?
Use a loop to follow the 'next' pointer 5 times (or until you reach the end of the list).