Skip to content

Instantly share code, notes, and snippets.

@EvanGertis
Created February 5, 2019 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EvanGertis/2b5851edfeddfca3e7c11a1044b49dde to your computer and use it in GitHub Desktop.
Save EvanGertis/2b5851edfeddfca3e7c11a1044b49dde to your computer and use it in GitHub Desktop.
// loops through the list and shows the value at each node.
void displayList(struct node *head)
{
struct node *p;
p = head->link;
while (p != NULL)
{
printf("%d ", p->info);
p = p->link;
}
printf("\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment