unable to understand why we using tail->next!=NULL rather than tail->null
Inseart at tail inkedlist
Hey @kartikaydwivedi55 ,
If we use tail != NULL then the loop will stop after the last node . But to insert at the last of the linked list we want to have access to the last node which will make the while condition as tail->next != NULL.
I hope you get my point . If you have any further queries you can ask here .
Happy coding !!