Created
February 28, 2018 16:35
-
-
Save dav1x/0014dd2f624e0fafdf6e11c119d42bca to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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