C program to check odd or even using bitwise operator

Pubblicato il: 27 gennaio 2016
sul canale di: Reyad Hossain
3,358
23

We can use bitwise AND (&) operator to check odd or even, as an example consider binary of 5 (0101) when we perform 5 & 1 the result will be one and you may observe that the least significant bit of every odd number is 1, so ( odd_number & 1 ) will be one always and also ( even_number & 1 ) is zero.


In questa pagina del sito puoi guardare il video online C program to check odd or even using bitwise operator della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Reyad Hossain 27 gennaio 2016, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,358 volte e gli è piaciuto 23 spettatori. Buona visione!