The referenced order of operations, while correct, are not immediately clear to readers.
Example:
48 + j % 10
Recommendation:
We advise the j % 10 statement which takes precedence over the addition to be wrapped in parenthesis (()), explicitly denoting that it is meant to be executed first.
PNF-03C: Unclear Order of Operations
Description:
The referenced order of operations, while correct, are not immediately clear to readers.
Example:
Recommendation:
We advise the
j % 10
statement which takes precedence over the addition to be wrapped in parenthesis (()
), explicitly denoting that it is meant to be executed first.