i would be greatful if anyone could help me with my non recursive
binary tree problem.actually i had already got some help from u.thanks for that.

the problem is when u give data in either order it gets printed
meaning acending or descending ie either on left side or right side
but if u give in between values the value does not get printed.
like for example

10,15,20,13
here 13 is inbetween it does not get printed.
13 does not get printed, the remaining elements
get printed.

can anyone tell me what's wrong with the code,
one problem i found is
in if (temp->right) and the else at times
both get satisfied is that the problem.
is that the problem ...??? i am attaching my code