9. 复杂类型指针
point
package main
import (
"fmt"
_ "strconv"
)
func main() {
var poi *int32
var song int32 = 123123
poi = &song
fmt.Println(*poi)
fmt.Print(poi)
}
123123
0xc00000c1b8成功: 进程退出代码 0
指针取值 * 类似于c++
本文来自博客园,作者:萱乐庆foreverlove,转载请注明原文链接:https://www.cnblogs.com/leleyao/p/11570072.html

浙公网安备 33010602011771号