void recursiveReverse(node *&head, node *p, node *c, node *n)
{
if (c == NULL)
{
head=p;
return;
}
n = c->next;
c->next = p;
p = c;
c = n;
recursiveReverse(head,p,c,n);
}
can i use this as rec function instead of the one prateek bhaiya explained.