B
bob
Hi,
Having trouble determining if bit n in a byte is on or off.
Seem to remember being able to do this with the logical And operator
something like if (2 & mybyte) { do something}
Maybe I am dreaming of VB days.
Is there a succint way of doing this?
thanks
Bob
Having trouble determining if bit n in a byte is on or off.
Seem to remember being able to do this with the logical And operator
something like if (2 & mybyte) { do something}
Maybe I am dreaming of VB days.
Is there a succint way of doing this?
thanks
Bob