then aren't the only valid arguments for the left side 0 and 1?No.
Does it convert the decimal number 2 to binary and then shift each bit?Yes, that is one way to look at it.
In reply to Re: Understanding Shift Operators
by toolic
in thread Understanding Shift Operators
by spickles
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |