package main
import "fmt"
type student struct {
name string
subject string
score int
}
func addScore(pStudent *student) {
pStudent.score++
}
func main() {
taro := student{
name: "Taro",
subject: "Math",
score: 40,
}
addScore(&taro)
fmt.Println(taro.score)
}