Last active
June 27, 2021 06:52
-
-
Save AahanSingh/bd70d5c3556523c0991322318d410f7a to your computer and use it in GitHub Desktop.
Display elements in the linked list
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
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