Syntax | | Same as | | Function |
variable += expression | | variable = variable + expression | | Add expression to variable |
variable -= expression | | variable = variable - expression | | Subtract expression from variable |
variable *= expression | | variable = variable * expression | | Multiply variable with expression |
variable /= expression | | variable = variable / expression | | Divide variable by expression |
variable %= expression | | variable = variable % expression | | Modulo variable by expression |
variable <<= expression | | variable = variable << expression | | Shift variable expression bits left |
variable >>= expression | | variable = variable >> expression | | Shift variable expression bits right |
variable |= expression | | variable = variable | expression | | Or variable with expression |
variable &= expression | | variable = variable & expression | | And variable with expression |
variable ^= expression | | variable = variable ^ expression | | Xor variable with expression |