22-08-2006, 04:11 PM
MISRA-C meeting 22-8-2006
There is both human confusion and undefined behaviour associated with nested assignment statements.
See ISO C 9899:1990 6.3 para. 2.
Keep it simple and write
Code:
x = y = y = z;
There is both human confusion and undefined behaviour associated with nested assignment statements.
See ISO C 9899:1990 6.3 para. 2.
Keep it simple and write
Code:
y = z;
x = y;
Posted by and on behalf of the MISRA C Working Group