Sunday, 6 May 2012

Traversing a Linked List in C


node *ptr = start;
printf("->");
while(ptr)
{
printf("%d->",ptr->info);
ptr=ptr->link;
}
printf("NULL\n");

No comments:

Post a Comment