|
Re: Functions of '?', ':', and '&' in the C programming language
Quote:
|
Originally Posted by Matt Leese
The bitwise operators work at the bit level. It will do a bitwise AND on each and every bit. So, if the low-bit of Tx_Buffer is 1, the output will be 1. Otherwise it will be 0.
Assuming Tx_Buffer = 0x41, the comparison would look like:
Code:
0000 0001
& 0100 0001
-----------------
0000 0001
Matt
|
Thanks for the reply Matt, that really clarified my understanding of the bitwise AND operator.
Thanks again,
|