Question d’entretien chez Apryse

How to multiply a number by 7 without using + and * operators?

Réponses aux questions d'entretien

Utilisateur anonyme

14 oct. 2010

use bit shifting.

1

Utilisateur anonyme

23 janv. 2013

n=n<<3-n

1

Utilisateur anonyme

9 août 2013

do the left.bit shift operation by 3 and then subtract the result by original number . eg: n=1 ,then n=n<<3 -n gives 7 , if n=2 ,then gives 14