Using a bitwise AND on more than two bits.
- by Koning WWWWWWWWWWWWWWWWWWWWWWW
Hi, I am pretty new to bitwise operators. Let's say I have 3 variables a, b and c, with these values in binary:
a = 0001
b = 0011
c = 1011
Now, I want to perform a bitwise AND like this:
a
AND b
AND c
--------
d = 0001
d &= a &= b &= c doesn't work (as I expected), but how can I do this?
Thanks