Golang快速入门 | 第二天
指针(入门水准) package main import "fmt" func addNumberOne(p int) { p += 1 } func addNumberOnePointer(p *int) { *p += 1 } func main() { var a int = 10 addNumberOne(a) fmt.Printf("addNumberOn
指针(入门水准) package main import "fmt" func addNumberOne(p int) { p += 1 } func addNumberOnePointer(p *int) { *p += 1 } func main() { var a int = 10 addNumberOne(a) fmt.Printf("addNumberOn