if((x & 1) == 0) printf("EVEN!n"); else printf("ODD!n");
why X&1 will always gives 1 when number is odd.. I mean what is happening in memory during this operation can any one explain it ?
X&1
1
Aucun commentaire:
Enregistrer un commentaire