Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
bgColor#ccccff
int *p;
/* ... */
(*p)++;

...