When performing pointer arithmetic, the size of the value to add to a pointer is automatically scaled to the size of the pointer's type. For instance, when adding a value to a pointer to a four-byte integer, the value will be scaled by a factor of four. Improper use of pointer arithmetic can lead to miscalculations that result in subtle and hard to spot coding a variety of errors.
Non-Compliant Code Example
...