Multiply a Number by 4 in C – Left Shift Bitwise Operator
To multiply a number by 4 using bitwise operators in C, shift it left by two bits: number << 2. Each left shift by one position doubles the value, exactly the way appending a zero multiplies a decimal number by ten — binary is base 2, so shifting one place multiplies by 2, two places …