Created
February 5, 2019 13:02
-
-
Save EvanGertis/2b5851edfeddfca3e7c11a1044b49dde to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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