& performs a bitwise AND operation on each digit of two 32-bit expressions. If the two digits are 1, the result is 1. Otherwise, the result is 0.
|bit 1||bit 2||bit and|
The following example shows how to use the & bitwise AND operator and &= bitwise AND assignment operators:
5 is 00000000000000000000000000000101.
var expr2 = 5;
var result = expr1 & expr2;
Expr1 &= expr2;
+ =--Assignment operator
The meaning of the above expression is: The value of I plus a, given the variable i.
|name||assignment operator||add assignment operator||subtraction assignment operator||multiplication assignment operator||Division assignment operator||modulus assignment operators (remainder assignment operator)|