Question: 2. (5 points) Write a recursive program named reverse_list to reverse a singly linked list pointed by pointer list_ptr. The function should return the pointer

2. (5 points) Write a recursive program named reverse_list to reverse a singly linked list pointed by pointer list_ptr. The function should return the pointer to the head of the reversed list. struct nodef void* data; struct node * next; hi struct node* reverse_list(struct node list-ptr) f
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
