(Solved):Create a function in C called appendLists that takes two heads of linked lists that store integers and appends the second one to the first. Add a main test. View Answer…

 

Question

Create a function in C called appendLists that takes two heads of linked lists that store integers and appends the second one to the first. Add a main test.

 

EXPERT ANSWER

The algorithm for the function appendList() is given below.

Input to the function : head1 of link list 1 and head2 of link list 2. The function will append the list pointed to by the second head (head2) to the

Scroll to top