Delete nodes from BST

My code is giving run time error please correct it and specify my error
codeLink:https://ide.codingblocks.com/s/183237

Hey @Divya_321
Great code. There was just a small error. I have mentioned it here. https://ide.codingblocks.com/s/183247

If your doubt is resolved please mark it as closed.

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.

@Aarnav-Jindal-1059677350830863 didn’t get your hint, as I have used node* data returned by function and made it right and left child may u please elaborate

You were returning the new node after deletion but you were not using the returned result after deletion to do anything