The following table lists the pointer calculation notation and its meaning.
Expression | Address p | Value *p |
---|---|---|
*p++ | Incremented after the value is read | Unchanged |
*(p++) | Incremented after the value is read | Unchanged |
(*p)++ | Unchanged | Incremented after it's read |
*++p | Incremented before the value is read Unchanged | |
*(++p) | Incremented before the value is read Unchanged | |
++*p | Unchanged | Incremented before it's read |
++(*p) | Unchanged | Incremented before it's read |