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

mysql - How to enter php data into a html multiple select box -

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

c++ - Cassandra datastax cpp driver - avoiding unnecessary copies -