Re: A89: Filling a Byte in C
[Prev][Next][Index][Thread]
Re: A89: Filling a Byte in C
Well, it becomes 0 if you're masking the value to 8 bits...
In a message dated Mon, 15 May 2000 7:49:13 AM Eastern Daylight Time, "Jean Canazzi" <jcanazzi@cybercable.fr> writes:
<<
> Thanks everyone. I appreciate it very much. Now that I know about << and
> |=, I have a little idea myself, but I don't know how fast it will be.
What
> I need to know is: Does 1 << 8 scroll it back around to 1, or would it
give
> me 0. Thanks,
Since << performs a shift, not a rotation, it will give 0. I don't think
rotations are possibles in C.
>>
Follow-Ups: