Questions tagged [bitwise-operators]

For questions relating to bitwise operators, which operate on the individual bits of integer types.

Filter by
Sorted by
Tagged with
12 votes
6 answers

What are the disadvantages of this far-fetched idea: All integers can be treated as boolean arrays?

I do not know of any languages that support this idea but I just thought that since numbers are just bits, why should we not be able to access those bits directly? In most languages such as C or C++, ...
CPlus's user avatar
  • 7,861