Example
void
function(
int
input)
{
if
(input & 0x101){
doSomething();
}
}
Solution
If the result is not equal to zero, then the condition evaluates to true. It is more clear if you show this directly.
void
function
(
int
input)
{
int
result = input & 0x101
;
if
(result != 0){
do
Something
();
}
}