in reply to Understanding Shift Operators
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Understanding Shift Operators
by 7stud (Deacon) on Apr 06, 2010 at 21:03 UTC | |
by ikegami (Patriarch) on Apr 06, 2010 at 21:23 UTC | |
by toolic (Bishop) on Apr 06, 2010 at 23:19 UTC | |
by spickles (Scribe) on Apr 07, 2010 at 00:27 UTC | |
by 7stud (Deacon) on Apr 06, 2010 at 21:49 UTC | |
by Anonymous Monk on Apr 06, 2010 at 22:14 UTC | |
by ssandv (Hermit) on Apr 06, 2010 at 23:05 UTC |