Tag - linked list program in c with explanation