i want to it. i may use it as i want . suppose i want to store 1,2,3,4,5,6... and i want to find the maximum number.. so instead of storing 1,2,3 in the data field i just create the nodes. and as i will traverse like this.
while(head->next!=NULL)
head=head->next;
count++;
i will get the maximum.