P122
[]
> *
、++
; *
= ++
,结合从右到左$ echo hello world *++argv 是指向"hello"的指针 (*++argv)[0] 是'h', 等效为**++argv *++argv[0] 为*++(argv[0])目的是遍历一个特定的参数串
p135
.
> *
*pp.x等价于*(pp.x)
.
和->
都是从左至右结合的以下表达式等价
r.pt1.x
rp->pt.x
(r.pt1).x
(rp->pt1).x
.
和->
,用于函数调用的()
以及用于下标的[]
的优先级最高:++p->len; // len+1
*p->str; // 指针str所指向对象的值
*p->str++; // *str++ 取str指向的对象值,然后str++
*p++->str; // 先读取str指向的对象的值,然后p++