View Single Post
  #5   Spotlight this post!  
Unread 02-05-2005, 22:46
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
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,
__________________