Question d’entretien chez GlobalLogic

How do you write "a program for odd number" in single line without using an operator ?

Réponses aux questions d'entretien

Utilisateur anonyme

19 janv. 2017

var isOdd = number & 1 == 0 ? false : true

Utilisateur anonyme

25 juil. 2013

#include main(){printf("A Program for odd number");}

1