Can anyone explain why the following doesn\'t compile?
byte b = 255 << 1
The error:
Constant value \'510\' can
You are shifting 255 by 1 bit, then trying to assign it to a byte. 255 << 1 is 510, and 510 won't fit in to a byte.
255 << 1 is 510