samedi 3 septembre 2016

About Bitwise operator

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 ?

Aucun commentaire:

Enregistrer un commentaire