Index
 
  The Wiring 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: hbarragan [at] uniandes.edu.co
Name  

|= (Bitwise OR and assign)

   
Examples  
unsigned int a = 60;	// 60 = 0011 1100 
unsigned int b = 13;	// 13 = 0000 1101 
 
a |= b;                 // 61 = 0011 1101 

Description   Combines bitwise OR and assign. The expression a |= b is equivalent to a = a | b.
   
Syntax  
expression1 |= expression2
   
Parameters  
expression1   any valid expression

expression2   any valid expression

   
Returns  
   
Usage   Application
   
Related   & (bitwise AND)
&= (bitwise AND and assign)
| (bitwise OR)
^ (bitwise XOR)
˜ (bitwise ones complement)
<< (bitwise bit shift left)
>> (bitwise bit shift right)