Given the declarations in Exercise 10, assume that the list pointed to by listl contains an arbitrary number of nodes. Write a recursive function that makes a single list containing two copies of the listl list. The first copy will be in the same order, and the second copy will be in reverse order. The new list is pointed to by list2.
Exercise 10
Given the following declarations:
struct NodeType;typedef NodeType* PtrType;struct NodeType{ int info; PtrType link;};PtrType listl;PtrType list2;Assume that the list pointed to by list1 contains an arbitrary number of nodes. Write a recursive function that makes a copy of this list in reverse order, which is pointed to by list2.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.