Hi
If I need to multiply a number by 2, I can left shift the number by 1 bit.
because shifting left by n bits on a signed or unsigned binary number
has the effect of multiplying it by 2^n (base 2 and power n).
Now if I want to multiple by 3, how can write a C program using bit operations.
please comment
thanks & regards
Onebrother