Skip to content

Left Shift Assign Operator

IsaacShelton edited this page Mar 21, 2022 · 1 revision

<<= Operator

The <<= operator is used for performing the bitwise arithmetic left-shift operation and storing the resulting value in the first operand.

x <<= 3

It can only be used as a statement, and the first operand must be mutable.

Clone this wiki locally