I need a function to traverse a linked list. I am writing a program that stores a bunch of nodes in a linked list...I have no Idea how to actually traverse the linked list I am creating though. Can anyone help me out?
Typically... the list has a 'head' which is the first node in the list, and each node has a 'next' pointer which points to the next node in the list. If the 'next' pointer is null, you've reached the end.