Skip to content

Instantly share code, notes, and snippets.

@dav1x
Created February 28, 2018 16:35
Show Gist options
  • Save dav1x/0014dd2f624e0fafdf6e11c119d42bca to your computer and use it in GitHub Desktop.
Save dav1x/0014dd2f624e0fafdf6e11c119d42bca to your computer and use it in GitHub Desktop.
Question 7:
Take a look at the following program. What will the Println function in the main function print out?
package main
import "fmt"
func main() {
name := "Bill"
updateValue(name)
fmt.Println(name)
}
func updateValue(n string) {
n = "Alex"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment