online marketing
online marketing
Programming and Debugging Geeks
Pages
Home
Free Download Ebooks
About Me
Wednesday, October 17, 2012
Print a singly-linked list backwards, in linear time
/*
* Print a singly-linked list backwards in linear time.
*/
void print(nodeptr head)
{
if(head == NULL) return;
print(head->next);
printf("%d ",head->data);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment