Originally Posted by
Mr.777
Better try to understand what i mean to do... It's just a temporary pointer that will help his/her code to locate the last node......
And we are not concerned with the temp, instead of inserting a new node... And we didn't loose any of the node as root pointer is pointing to the first node of linked list..
Are you up for the suck???
Kyle, try to understand what you are doing here.....
In AddNode(), your current pointer is null as your head is null.
And you are trying to compare it's next to something....
Do you really thing that if a pointer has null (that means, no node) and you try to compare what's in the next part of the node, having no node... Just think about and you can do this...