Pages

Monday, 3 December 2012

Reverse Print Singly Linked List

void reversePrint(Node *head)
{
      if(head!=null)
      {
            reversePrint(head->next);
            printf("%d",head->data);
      }
}

No comments:

Post a Comment