Bitwise AND and assign
From Wiring
| Name | &= (bitwise AND and assign) | ||||||
| Description | Combines bitwise AND and assign. The expression a &= b is equivalent to a = a & b. | ||||||
| Syntax | expression1 &= expression2 | ||||||
| Methods | |||||||
| Constructor | |||||||
| Parameters |
| ||||||
| Returns | |||||||
| Example | unsigned int a = 60; // 60 = 0011 1100 unsigned int b = 13; // 13 = 0000 1101 a &= b; // 12 = 0000 1100 | ||||||
| Related | & (bitwise AND) , | (bitwise OR), |= (bitwise OR and assign), ^ (bitwise XOR), ˜ (bitwise ones complement) , << (bitwise bit shift left) , >> (bitwise bit shift right) |
| Language: | English • Español |
|---|