Answers for "preorder inorder"

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 inorder"

Browse Popular Code Answers by Language