Insert a Node at the Tail of a Linked List

  • + 0 comments

    in your while loop , it should not be there(p->next=temp).