DEV Community

Discussion on: Bitwise Operators

Collapse
 
loki profile image
Loki Le DEV

Thanks for this tutorial,
it makes me think of one interview question I like to ask to candidates:

  • Write a function that counts the number of bits equal to 1 in a word (let's say a 32 bit words).

It makes use of all the knowledge you just describe.

Collapse
 
rpalo profile image
Ryan Palo

Yep! I could totally see how that would apply! Awesome 😁