Insertion at last doubt

if i use l while reaching to the end in the inser at end function
why it gives run time error

i know tail->next!=NULL condition would work fine , but what is the issue in this

hey @yatin, make < instead of <= in while loop condition.

okk sir got it
thank you :slight_smile:

hey @yatin , if your query is resolved. Please mark this doubt as resolved and rate me on the basis of your experience.
rating option will appear when to mark this doubt as resolved