Build tree from inorder and preorder

In the function create node why array in and pre is declared in pointer format.

hiii @dips123deepali_c25f140838182212 in c++ you can take vector or array in c we not having dynamic array this is one of the reason and usually it takes to call by reference for that also in c++ we call by reference using & operater in c it takes * to call by reference

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.