...
CERT C Secure Coding Standard: "EXP02-C. Be aware of the short-circuit behavior of the logical AND and OR operators"
CERT C++ Secure Coding Standard: "EXP02-CPP. Be aware of the short-circuit behavior of the logical AND and OR operators"
Bibliography
<ac:structured-macro ac:name="unmigrated-wiki-markup |
...
" ac:schema-version="1" ac:macro-id="e8ae3c1c-7b95-4f4c-a184-999f8fdf4ce4"><ac:plain-text-body><![CDATA[ | [[Flanagan |
...
2005 |
...
AA. |
...
Bibliography#Flanagan |
...
05] |
...
] |
...
2.5.6. |
...
Boolean |
...
Operators | ]]></ac:plain-text-body></ac:structured-macro> | |||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c4bba03d-bdbe-48df-a9bc-563f8673be21"><ac:plain-text-body><![CDATA[ | [[JLS 2005 | AA. Bibliography#JLS 05]] | [§15.23 | http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.23] |
...
"Conditional-And |
...
Operator |
...
&&" |
...
]]></ac:plain-text-body></ac:structured-macro> | |
| §15.24 "Conditional-Or |
...
Operator |
...
" |
---|
...
EXP06-J. Use parentheses for precedence of operation 02. Expressions (EXP) EXP08-J. Do not write more than once to the same variable within an expression