In this sir wrote the code as :
node *reverseRec(node *head).
Can someone please explain it to me.
CPP : Recursive Reverse a Linked List
Basically, when you are reversing a linked list, the head pointer of linked list is changed, thus when u write node *, it means that you tend to return the head pointer of node type, reverseRec is the name of the function, and the parameter that you need to pass here in the function is the head pointer of the linked list…