Why my code is not working?


binary tree preorder implementation

first in print tree u write if(root=NULL), yha pai if(root==NULL) ayga.
i hope u get it.
and apne input mai - 1 likha hua hai - kai baad gap nhi dena uske dirrect baad number likho.

it’s working thanks,…

resolve the doubt thanks.

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.