Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>>> bitwise shift right</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 >>                      Bitwise Shift Right

 exp1 >> exp2            bitwise shift right
 exp1                    any integer value
 exp2                    any integer value; treated as unsigned

    The >> operator returns exp1 shifted to the right by exp2 bits, with
    the vacated lefthand bits filled with zeros if exp1 is of unsigned
    type. If exp1 is of signed type, then the vacated bits in exp2 are
    filled with copies of the exp1 sign bit. For example:

           j = 0x0F71;
           i = j >> 4;          /* i == 0x00F7 */

    In C++, the >> operator has been overloaded to receive data from a
    stream, as in cin >> my_data. It is referred to as the extraction
    operator.

       Note:    The >> operator does not alter exp1.


See Also: <<

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson