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

Rule:  6.5.16.aChecked automatically with code checker

Synopsis:Do not use nested assignments.
Language:C
Severity Level:8
Category:Expressions


Description:

Justification

Nested assignments are most of the time used unintentionally causing unexpected behavior.

Example

x = /* WRONG */
y =
z = 0;

x = 0; /* RIGHT */
y = 0;
z = 0;