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
5 votes
1 answer
199 views

Should bitwise operations have dedicated operators? [closed]

Many programming languages have built-in support for bitwise operations, often using C's syntax: ~ = NOT & = AND ...
dan04's user avatar
  • 1,809
12 votes
6 answers
387 views

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++, ...
user16217248's user avatar
  • 7,535