Querying the status of a bit (via bit-masking)
Once you know how to query the status of a bit, it's not too difficult to iterate through all the bits you have. You can use shift operators to...
Type: Posts; User: helloworld922
Querying the status of a bit (via bit-masking)
Once you know how to query the status of a bit, it's not too difficult to iterate through all the bits you have. You can use shift operators to...
use bitwise and masking and a loop.