BlackBerry Interview Question

Write a function that will return x*7 without using multiplication?

Interview Answer

Anonymous

Nov 8, 2014

tmp = x; x <<= 3; x -= tmp;