in reply to bitwise operators
These are the binary representation of two numbers. Now, we go through bit by bit and we take the result by these rules:10011 01011
so, the above is this:
There are also the operators OR,XOR,and more. OR is the result bit is 1 if either bit is set, XOR is the result bit is 1 if one but not both of the bits are set.10011 #from above 01011 #from above 00011 #result
|
|---|