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
Use a bitwise (not logical!) and to compare the value against a bitmask.
if (var & 0x08) { /* the fourth bit is set */ }