Answers for "preOrder tree"

1

preorder

void preorder(Node* root){
    if(root != NULL){
        cout<<root->data<<" ";
        preorder(root->left);
        preorder(root->right);
    }
}
Posted by: Guest on August-01-2021

Code answers related to "preOrder tree"

Browse Popular Code Answers by Language