My code is throwing error while printing inorder and post order of binary tree

please look into my code

Hey @Anku47
some corrections
On line 5: it should be int data;
Line 27,28,29 are not required and they are also not in any function so comment them
On line 48 : It should be int main()
comment line 51 because u haven’t created a print function .

Let me know if u still face any issue.

i made correction according as you told but it still not giving desired output.
please look into it

@Anku47
On line 9 you are redeclaring data by : Int data =d;
Make it data=d;
Your code will work fine.

Hey , If your doubt is resolved then please mark it resolved :slight_smile:
Otherwise let me know the issu .