TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
ASML C Coding Standard
Search

Rule:  6.8.3.aChecked automatically with code checker

Synopsis:Each expression and statement shall have an effect.
Language:C
Severity Level:6
Category:Statement and Blocks


Description:

Justification

Specified expressions that cause no effect clutter the program text, leaving the puzzle why the expression or statement is there to the reader.

Example

i == 1; /* WRONG: "i" has no effect. */  
j + 1; /* WRONG: "j" has no effect. */

i = 1; /* RIGHT */
n = j + 1; /* RIGHT */