Re: A89: Filling a Byte in C


[Prev][Next][Index][Thread]

Re: A89: Filling a Byte in C




It depends on the size (type) of the variable you apply that function on.
But as said; it is a shift, not a rotation, so if it is a byte you do it on, it
will be zero.

//Olle

Sebastian Reichelt wrote:
> 
> 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,
> 
> Sebastian



References: