The prefix increment/decrement and dereference operators are equal precedence, but the postfix operator is higher, so *p++
is the same as *(p++)
, which is like writing *p = val; p++;
If you wrote (*p)++ = val
, it wouldn't compile, as you'd be trying to assign a value to a number.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…