...
Code Block | ||
---|---|---|
| ||
x & (1 == 0) |
which the compiler evaluates to
Code Block | ||
---|---|---|
| ||
(x & 0) |
and then to 0
.
Compliant Solution
In this compliant solution, parentheses are used to ensure the expression evaluates as expected.
...
...
Code Block | ||
---|---|---|
| ||
x & (1 == 0) |
which the compiler evaluates to
Code Block | ||
---|---|---|
| ||
(x & 0) |
and then to 0
.
In this compliant solution, parentheses are used to ensure the expression evaluates as expected.
...