Ive made my binary tree in the following format
typedef struct node
{ int info;
struct node *left;
struct node *right;
}*nodeptr;
Im looking for a function that will accept the root pointer and print the tree in a graphical format.
for eg.
i want the output to be
_____5
_____/\
____3__7
____/__/\
___2__6_8
_________\
__________9
How can i get such and output (without the underscores .. given only because spaces cannot be detected.)
Please Help!!