How to display?

@shivansh.sm1
Hello shivansh,
do preorder traversal of ur construted tree and for each node print in following format

left node value => current node value <= right node value

if left node or right node value is null then print END at their places

@aman212yadav
it is giving error

@shivansh.sm1
when ur printing root->left->data make sure root->left !=NULL if it is null then print END ,
similarly for root->right

@shivansh.sm1
ur code is correct. pls submit again