Question: Write a C function reverseList() that takes a linked-list header as parameter, reverses the order of the nodes. When function returns, 1st node will be

Write a C function reverseList() that takes a linked-list header as parameter, reverses the order of the nodes. When function returns, 1st node will be the last, 2nd node will be 2nd from end, ..., the last node will be the 1st,

Write a function that changes the places of the first and last nodes of a linked list. I.e. First node will become last node, and the last node will become first node. Others nodes will not be affected. THE FUNCTION WILL NOT EXCHANGE DATA, IT WILL CHANGE LINKS.

Write a function that changes the places of the n'th node and "n+1st" node of a linked list. THE FUNCTION WILL NOT EXCHANGE DATA, IT WILL CHANGE LINKS.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!