Whenever I solve bitwise operator problems, I have this problem.
if(n&1 == 1) => makes errors
if((n&1) == 1) => OK
Is there anyone who can explain this for me?