Perl-Sensitive Sunglasses | |
PerlMonks |
RE: RE: RE: RE: There can be only one!by Anonymous Monk |
on May 31, 2000 at 22:39 UTC ( [id://15681]=note: print w/replies, xml ) | Need Help?? |
A byte is 8 bits. A bit is a 1 or a 0 that spells out the
binary number corresponding to what you're trying to express.
2 in binary is 00000010. Shifting that to the left by
3 is this:
2 << 3 which yeilds 00010000 which is 8.
shifting bits is like taking an eight bit number and rotating
it in a certain direction.
In Section
Obfuscated Code
|
|