Skip to content

Instantly share code, notes, and snippets.

@amulyagaur
Created July 16, 2017 18:37
Show Gist options
  • Save amulyagaur/8b5f9653bcb8719b6d0c3e73ca5e399c to your computer and use it in GitHub Desktop.
Save amulyagaur/8b5f9653bcb8719b6d0c3e73ca5e399c to your computer and use it in GitHub Desktop.
void print_list(node* head)
{
while(head!=NULL)
{
cout<<head->data<<endl;
head=head->next;
}
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment