Tree: Preorder Traversal

  • + 0 comments

    void preOrder( struct node *root) { if(root == NULL) return; printf("%d\t",root->data); preOrder(root->left); preOrder(root->right); return; }