View Single Post
Old Apr 26th, 2008, 7:33 PM   #1
redfiretruck
Newbie
 
Join Date: Apr 2008
Posts: 23
Rep Power: 0 redfiretruck is on a distinguished road
Bitwise Operators...

I have read/looked through like 2 books and 1 online guide about "bitwise operators" such as >> and <<... I just can't express the amount of confusion I have towards these operators xD.

Example:
Quote:
The bitwise AND operator & is often used to mask off some set of bits, for example

n = n & 0177;
sets to zero all but the low-order 7 bits of n.
I just don't get it... I mean... What's the low-order part of bits? And this works for all these "bitwise" operators, I just don't get them xD.

So if someone could explain them more in-depth, more importantly how they are used and what the outcome becomes , that would be great ^_^.

-- Them being the commands like >>, &, << and |.
redfiretruck is offline   Reply With Quote