/*****
traverse list function
*****/
void traverselist()
{
struct node *temp=head;
int i=1;
while(temp)
{
printf("Printing %d Element of Linked List %d\n",i,temp->data);
i++;
temp= temp->link;
}
}
traverse list function
*****/
void traverselist()
{
struct node *temp=head;
int i=1;
while(temp)
{
printf("Printing %d Element of Linked List %d\n",i,temp->data);
i++;
temp= temp->link;
}
}
No comments:
Post a Comment