Code is giving segmentation fault

Ques:- find Lowest common ancesstor in a bst
Ide:-https://ide.geeksforgeeks.org/NaM3RnAFZ1

hello @manikjindal49 you have to print the LCA value only right ?

check this for the same :


if you still feel that any of your query is left unanswered you can ask here .
Happy Learning !!

Not able to see the full code please again share the code