BIT OPERATIONS
Each variable, number, education, etc. we use in our program is stored in the memory of our BK7, this memory is composed of " bits ". A bit is a " 1 or 0 " and is the basis of our entire program. Each variable we have used so far is made ​​up of a number of bits; It determines the number of bits until we can save number as shown in the following table:

In the following table we can see the numbers 0 to 10 in binary representation:

bit logical operators
To directly modify the bits of a variable, there are the following operators:

AND (&): This operator follows the following logic:

As you can see in the table only if both bits are 1, the result will be 1, if any bit is 0 the result will be 0.
OR (|): This operator follows the following logic:

As you can see from the table that there is a 1 the result will be 1, but there is no one the result will be 0.
XOR (^): This operator follows the following logic:

As you can see in the table only if both bits are different the result will be 1 if the bits are equal the result will be 0. The following example shows how the operator is used XOR :
​
When making a XOR of 0b00000011 with 0b00000101 the first bit compared to the first bit, the second with the second, and so on until the eighth bit, leaving 0b00000110 result in decimal would be a 6.
​
NOT (~): This operator follows the following logic:

As can be seen in the table this operator inverts the bits, if 0 give 1 and if one give to 0.
​
Recorrimiento left (<<): This operator runs bits of position on the left the number of spaces you specify. Upon touring the bits are filled with 0 bits in the new bits that appear.
​
Recorrimiento right (>>): This operator runs the bit position to the right the number of spaces you specify. Upon touring the bits are filled with 0 bits in the new bits that appear.