Binary tree printing showing segmentation fault?


this is my code its showing segmentation fault Is there any mistake?
I think the mistake is in the print function but I dint get it

hello @tharunnayak14 i have corrected the code and commented the mistake .


if you feel that your doubt is cleared please mark this doubt as resolved .
Happy Learning !!