chandrou_k, please use the bbcode when having code snippets in the posts.

husslela2, apart from the code by chandrou_k there are some other linked list related programs here as well.

Basic operations in Linked List
Swap two nodes of a linked list
Move forward a node in linked list
Insert a node in a linked list
Double linked list
Double circular linked list
Circular linked list
Priority Queue implementation using Linked List
Queue implementation through linked list
Doubly Linked List Implementation in C#