I was just going through some basic stuff as I am learning C. I came upon a question to multiply a number by 7 without using * operator. Basically its like this
(x<<3)-x;
Now I know about basic bit manipulation operations, But I cant get how do you multiply a number by any other odd number number without using * operator?? Is there any general algorithm for this??