func main() {
//b := 255
//var a *int = &b // a是int指针,指向b的内存地址
//fmt.Printf("Type of is:%T\n", a)
//fmt.Println("address of b is", a)
//
//a := 22
//var b *int //b 这个变量是int类型的指针变量,变量的值,也只能是int型指针
//if b == nil {
// // 指针的零值是nil
// fmt.Println("b is", b)
// b = &a
// fmt.Println("b after initialization is", b)
//}
//b := 255
//a := &b
//fmt.Println("address of b is", a)//打印b的内存地址
//fmt.Println("value of b is", *a)//打印b的值,可以通过*a指针
//b := 255
//a := &b
//fmt.Println("address of b is:", a) //b的内存地址
//fmt.Println("value of b is:", *a)
//*a++ //通过a的指针加一
//fmt.Println("new value of b is:", b)
//a := 58
//fmt.Println("value of a befor func call is:", a)
//b := &a
//change(b) //指针变量b,改变a的值,a=55,
//fmt.Println("value of a after call is:", a)