How to print a data from a binary tree in-order(ascending)

//
// recursive version
//

Void PrintTree(struct * node node) {
  if (node == NULL)
    return;

  PrintTree(node -> left);
  Printf(“ % d”, node -> data);
  PrintTree(node -> right);
}
Chitra
Chitra

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest updates on your inbox

Be the first to receive the latest updates from Codesdoc by signing up to our email subscription.

    StudentProjects.in