Frage im Vorstellungsgespräch bei BlackBerry

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

Antwort im Vorstellungsgespräch

Anonym

8. Nov. 2014

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