Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C - <b>| bitwise or operator</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
|                        Bitwise OR operator

 exp1 | exp2             Bitwise OR
 exp1, exp2              any integral expression

    The | operator performs a bit-by-bit OR operation on exp1 and exp2.
    (A bit of the result is true if either or both of the corresponding
    bits of exp1 or exp2 is true.)  Example:

           i = 0x0FF0;
           j = 0xFF00;
           k = i | k;           /* k == 0xFFF0 */

See Also: & | ~ ||

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