in reply to popped bit in right shift operation
blokhead is right, you really want to do a bitwise and (&) BEFORE you shift.
You may also wish to check out Bit operations for beginners or Re: Re: What A Wonderful World: Bitmasks! for more information on bitwise operations.
--
"To err is human, but to really foul things up you need a computer." --Paul Ehrlich
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: popped bit in right shift operation
by vasu (Novice) on Oct 03, 2003 at 18:26 UTC |