Question d’entretien chez Command Alkon

How would you determine if a number is even or odd programmatically?

Réponse à la question d'entretien

Utilisateur anonyme

1 avr. 2016

I used bitwise operations to check if the least significant bit was set to one. Another solution could be to use modulo operators.