Regardiing binary tree

my program is not working properly pls check the errors.

hello @ssmit_joshi

a) initialise them with NULL.
image

b)
return type should be NODE * becuase we will return pointer
and inside if condition u should return NULL
image

refer this->

i think you are not running the program which i have sent

it is giving so many errors like node does not name a type , create was not declared

and pls do corrections in my code only dont send your codes

check my last response ,there i have already mentioned the corrections that u need to do.

Then also it is not you do correction in my code and run the code and then tell me

share ur updated code .

after these correction , if it will need any furthur changes then i will correct it

now in this code only you complete my program and mention the mistakes in comments in that program only

pls reply for my doubt

@ssmit_joshi
check now->

in display function how do you write root we have not declared there ?

rename that head pointer with root. rest is correct

then also it is showing error that create and display was not declared in the scope

put both functions on the top ie put them before main and then it will work .
reason->
c++ follow top down approach thats why ur current code is not working

you only check it yaar i m trying since long but not working afraid of theese

check now->