Hi,
The following code is for traversing the linked list:
node is a structure and next is a pointer to next node declared in node. start is the pointer to the first node.
node* temp = start;
while(temp != NULL)
temp = temp->next;
I dont understand the statement temp = temp->next;, that is how does it points to the next node. I was expecting something like,temp += temp->next;
Can anyone please explain this for me.