Delete nodes from BST

please tell where my code is incorrect. The link of the code is as follows:-

there are 3 things u need to get it right

  1. consider the base case when root==NULL
  2. at line 63 you have called deleteBst for root->left instead of root->right
  3. at line 114 you should have done root=deleteBst(root) as root value can be updated when delete function is called in root

here , i have updated your code : https://ide.codingblocks.com/s/185982

In case of any doubt feel free to ask :slight_smile:
and if you got the answer mark your doubt as resolved

Thank you so much for the help