How to swap two nodes in a linked list is a popular problem in data structure. In this post I will explain how to swap two nodes in a linked list. I will explain to swap two nodes without swapping data in a linked list.
Write a C program to create a linked list and accept two node position from user. The program should swap two nodes in linked list without swapping their data.