package main
import (
"fmt"
)
func main() {
x, y := 1, 2
a := [...]*int{&x, &y}
fmt.Println(a)
}
输出结果:
[0x1f2100e0 0x1f2100e8]
Go编程笔记(9)
package main
import (
"fmt"
)
func main() {
x, y := 1, 2
a := [...]*int{&x, &y}
fmt.Println(a)
}
输出结果:
[0x1f2100e0 0x1f2100e8]