Versions Compared

Key

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

...

Similarly comparing pointers can tell you the relative positions of the pointers in term of each other. Subtracting or comparing pointers that do not refer to the same array can result in undefined erroneous behavior.

Non-Compliant Code Example

...