Re: [CHALLENGE] finding rightmost zero bit



On 2005-08-30, N. Shamsundar <shamsundar_at_@xxxxxx> wrote:
>
> Oh? What about the machine word with all bits set to 1? For example, an
> 8 bit word with value 255?

Then the answer would be 9.

> Or is one supposed to look outside the
> machine word to find the 0 bit which is "always there"?

Yes.

Regards,
Bart

--
"Share what you know. Learn what you don't."
.



Relevant Pages