The Cavalier Programmer
The bugs are for you to find! I'm wired in! Are you?
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment