posted 4 years ago

Have you read this?

If you have, just tell us what you don't understand.

If you haven't, just do it.

If you have, just tell us what you don't understand.

If you haven't, just do it.

posted 4 years ago

Those two are completely different.

<< is the left shift operator; it shifts all the bits of the number that you are shifting one bit to the left.

& is the bitwise AND operator.

Note that "x op= y" means the same as "x = x op y". So, for example

- 1

Ouyeahh Manjon wrote:It's the same <<= that &=

Those two are completely different.

<< is the left shift operator; it shifts all the bits of the number that you are shifting one bit to the left.

& is the bitwise AND operator.

Note that "x op= y" means the same as "x = x op y". So, for example

`x <<= 3`is the same as

`x = x << 3`.