dimanche 29 janvier 2017

Does "true" in C always mean 1?

Please consider these piece of C code:

if ((value & 1) == 1)
{

}

Assuming value equals 1, will (value & 1) return 1 or any unspecified non zero number?

Aucun commentaire:

Enregistrer un commentaire