标签:
package main import “fmt” func fp(a *[3]int) { fmt.Println(a) } func main() { for i := 0; i < 3; i++ { fp(&[3]int{i, i * i, i * i * i}) } }
golang passing an array to a function
原文地址:http://www.cnblogs.com/rojas/p/4486993.html