samedi 9 novembre 2019

Which is the best way to set a bit & why?

If I had to set 4th bit,

Which is the best way

Method 1: a |= (1 << 3)

Method 2: a |= 4

Please elaborate the difference.

Aucun commentaire:

Enregistrer un commentaire