Pergunta de entrevista da empresa BlackBerry

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

Resposta da entrevista

Sigiloso

8 de nov. de 2014

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