I use a byte to store some flag like 10101010, and I would like to know how to verify that a specific bit is at 1 or 0.
10101010
1
0
Traditionally, to check if the lowest bit is set, this will look something like:
int MY_FLAG = 0x0001; if ((value & MY_FLAG) == MY_FLAG) doSomething();