If I use this: if(value & 4) to check if the bit is set, then how do I check if the bit isn\'t set?
if(value & 4)
I tried with if(!value & 4) or
if(!value & 4)
Simply:
if ((value & 4) == 0)
Why?
If value is 01110011
value
Then
01110011 & 00000100 --------
Will return 0 because 4th bit is off.