1 int x, y, *px = &x, *py = &y; 2 y = *px + 5; //表示把x的内容加5并赋给y,*px+5相当于(*px)+5 3 y = ++*px; //px的内容加上1之后赋给y,++*px相当于++(*px) 4 y = *px++; //相当于y=(*px)++ 5 py = px; //把一个指针的值赋给另一个指针
指针的操作 p*++
猜你喜欢
转载自www.cnblogs.com/CodeWorkerLiMing/p/10660144.html
今日推荐
周排行