This rule is Obsolete | |
Synopsis: | Avoid pointer arithmetic . The only operators allowed on pointers are "=", "==", "!=", " ->", "[ ]" (for arrays) and the unary "*". |
Language: | C++ |
Severity Level: | 6 |
Category: | General |
Description: |
Pointer arithmetic can be portable. The operators "==" and "!=" are defined for all pointers of the same type, while the use of the operators "<", ">", "<=", ">=" are portable only if they are used between pointers which point into the same array. |
Literature References: |
Ellemtel P. Rec. 18 |