Doubt in insertAtTail

Why are we not incrementing in while loop in insertAtTail() ?


Hey @dhanshree_p18
Can u please elaborate

In while loop , what did u mean by increment ?

Tail =tail -> next is used to moved through nodes

like first tails is pointed to head in line 74
then in while loop when we do tail=tail->next then it means taill will move to next node pointed by it currently