•  Back 
  •  C Language 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : C-Language Documentation
Author      : John Kormylo
Version     : C.HYP 1.0
Subject     : Documentation/C-Language
Nodes       : 233
Index Size  : 6362
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : 
@help       : Help
@options    : +g -i -s +x +z -t4
@width      : 75
View Ref-File[ Bitwise Operators ]

&  Bitwise And         01100 & 01010 == 01000
|  Bitwise Or          01100 | 01010 == 01110
^  Bitwise Xor         01100 ^ 01010 == 00110

<< Shift Left:         1 << 3 == 010 == 8
   return Lvalue shifted left Rvalue bits.

>> Shift Right         012 >> 3 == 1
   return Lvalue shifted right Rvalue bits.

Note: Bitwise operators cannot be used with float or double.

See also Unary Operators ~
and Assignment Operators &= |= ^= <<= and >>=