Getting error in insertion at middle


code for the program

hello @Bhavya_Goel
initialise ur root node with NULL.

image
and use < in place of <=

still getting error this is the code now


check ur updated code here.

u have written ; just after while condition. thats why it was not working

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.