LInked list insertion in middle


cannot figure out the error in my code?

@jatinupadhyay786 order of functions matter! if you are calling a function x from function y, make sure function x was declared before function y. In this case you were calling insertAtTail() from insertInMiddle function but it had been declared later.
Also there is a slight modification in your insertAtTail function.
Correct code with all changes: https://ide.codingblocks.com/s/285017

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.