my code is giving segmentation fault
Delete nodes from bst
hi @pooja_narula, your code is correct overall. there is a silly mistake in your code
at line 94 it should be
root=delinBST(root,d);
instead of
node *root=delinBST(root,d);
In case of any doubt feel free to ask 
mark your doubt as resolved if you got the answer
itβs working fine now, thanks