...
If the intent was to increment the value referred to by p
, then parentheses can be used to ensure p
is dereferenced and then incremented (see EXP00-AC. Use parentheses for precedence of operation).
Code Block | ||
---|---|---|
| ||
int *p; /* ... */ (*p)++; |
...
...
If the intent was to increment the value referred to by p
, then parentheses can be used to ensure p
is dereferenced and then incremented (see EXP00-AC. Use parentheses for precedence of operation).
Code Block | ||
---|---|---|
| ||
int *p; /* ... */ (*p)++; |
...