Skip to content

Instantly share code, notes, and snippets.

@AahanSingh
Last active June 27, 2021 06:52
Show Gist options
  • Save AahanSingh/bd70d5c3556523c0991322318d410f7a to your computer and use it in GitHub Desktop.
Save AahanSingh/bd70d5c3556523c0991322318d410f7a to your computer and use it in GitHub Desktop.
Display elements in the linked list
func DisplayList(head *Node) {
fmt.Printf("The list is: ")
for ; head != nil; head = head.Next {
fmt.Print(head.Data, " ")
}
fmt.Println()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment