项目属性->生成->选择“允许不安全代码”
int x = 10;
int* px, py;
px = &x;
py = px;
*px = 20;
int y = *px;
指针变量px py
存储int型变量x的地址。
&x表示变量x的地址;
*x表示取得变量x的值。