The programming languages provide a number of operators, primarily for the usual mathematical operations. Usually they have associated instructions that the microprocessor can execute directly. The bitwise operators also correspond to instructions that the microprocessor has in its set, even if they do not necessarily correspond to widely known operations. Thus, using them to perform certain tasks makes the programs very fast, especially if they are used in their critical sequences. In this material we will present the syntax and the effect of these operators in the C / C ++ language and we will present relevant situations where certain problems can be solved elegantly and by code that is executed quickly, with the help of bitwise operators.
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.