Help with swapping nodes in a linked list
I don't understand the logic behind swapping a node in a link list. Currently i have a simple list with customers their names are in a array which is stored in a struct on the linked list node. There's a pointer to the start, from there i just loop around till i get to the end custList->next etc.. all the names are printed.
Now, i can get a reference to the start and next elements in the list. But how exactly do i reference a specific node that i want? and swap it?