Question d’entretien chez Intel Corporation

Explain what the following code does: ( ( n & ( n-1)) == 0). From cracking the coding interview

Réponse à la question d'entretien

Utilisateur anonyme

16 sept. 2019

Checks if n is a power of 2 (or if n is 0)

1