I just started learning about bit wise operation and want to ask why and 1 ( &1) bitwise operation always return 0 or 1 .
Why and 1 ( &1) bitwise operation always return 0 or 1
12.3k views Asked by hung.dev At
4
I just started learning about bit wise operation and want to ask why and 1 ( &1) bitwise operation always return 0 or 1 .
therefore any number & 1 will always be either 0 or 1
in binary ... any number
or
where x can be 0 or 1
1 in binary is
so