Created
November 2, 2015 19:08
-
-
Save irrationnelle/4ba25913fa1c42e68445 to your computer and use it in GitHub Desktop.
I just thought that this function need only current node's pointer which point NewNode, but NewNode also need current node's pointer which point former NextNode.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void SLL_InsertAfter(Node* Current, Node* NewNode) | |
{ | |
Node* Tail = Current; | |
Tail->NextNode = NewNode; | |
} |
Author
irrationnelle
commented
Nov 2, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment