c - Linked list - Is this the correct way to refer to the next to next node of the current node -


Currently the 'L' is pointing to the current node. Using the Pointer 'L' I want to make the oldp equal to the node. So what I'm trying to say is that oldp = node where 'L' is currently indicative of the current node I

  oldp = l-> gt; Next-> Next;  

  oldp = l-> next;  

is enough ...


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -