Versions Compared

Key

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

The relational and equality operators are left-associative in C. Consequently, C, unlike many other languages, allows chaining of relational and equality operators. The C standard, Section 6.5.8, paragraph 6, footnote 107, of the C Standard [ISO/IEC 9899:2011], says:

...

Tool

Version

Checker

Description

ECLAIR

Include Page
ECLAIR_V
ECLAIR_V

exprprns

Fully implemented.

GCC

Include Page
GCC_V
GCC_V

 

Option -Wparentheses warns if a comparison like x<=y<=z appears. This warning is also enabled by -Wall.

ECLAIR

Include Page
ECLAIR_VECLAIR_V

exprprns

Fully implemented.

PRQA QA-C
Include Page
PRQA_V
PRQA_V

3392
3401
4111
4112
4113

Fully implemented.

...