Passing by reference of head

in the insertion function, instead of passing as node*&head, can we pass it as node**head?
i mean a pointer head to the address of head?

hello @pranaynigam

yeah u can , some changes will be needed.
but if u know what u are doing then its not an issue

then ill write something like *head->next and codelike that right?

yes… something like that