Whats wrong in this code
at line no 15 you have to put semicolon
as at end of class there should be semicolon
also at line 60
you have to put equal to in both conditions
if(root->data>=q and root->data<=w){
still shows a run time error
your approach is not correct
suppose you have to print element from 1 to 5
but root node is 20
then your code will not print anything
you have not take this case into cosideration
try again
tried to correct , still something wrong, please help
modified code
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.