|

Search results for shift



Answer Multiply by 8 via shift and substract the number: int multiply(int num) { return (num << 3) - num; } ...
Answer: int Double(int Number) { return (Number >> 1); } Note that the fractional part is rounded down. ...