What does this program print?
Go
package main
import "fmt"
type Score struct{ Value int }
func (score Score) Add(delta int) {
score.Value += delta
}
func main() {
score := Score{Value: 7}
score.Add(3)
fmt.Println(score.Value)
}
package main
import "fmt"
type Score struct{ Value int }
func (score Score) Add(delta int) {
score.Value += delta
}
func main() {
score := Score{Value: 7}
score.Add(3)
fmt.Println(score.Value)
}