Difference between ** and *&

why we cannot pass insert(node *head)in place of insert(node &head)?
what is the meaning of *&?

Hello @sanjana23,

insert(node *&head): you are passing a pointer(head) of type node (using pass by reference approach).
so, changes made to this would be permanent.

insert(node **head): you are passing a pointer to pointer of type node.

Hope, this would help.
Give a like if you are satisfied.

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.