Link list Palindrome

void reverse(Node**head){
Node*curr = *head,*pre = NULL,*ne = NULL;
while(curr){
ne = curr->next;
curr->next = pre;
pre = curr;
curr = ne;
}
*head = pre;

}

what is the use and what it does
Node**head
and *curr = *head and *head = pre

@Somith double pointers are used for passing a pointer by reference, but that’d create a lot of confusion so it better to pass the variable by reference by using &

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.