July 2018
Beginner
552 pages
13h 18m
English
Bitwise logical operators are very rarely used. With these operators, you are able to make bitwise operations on numeric values. One scenario where these operators are frequently used can be found in IPv4/IPv6 subnetting procedures:
|
Operator
|
Meaning
|
Description
|
|
-band |
Bitwise AND |
Returns the bitwise AND operation between left and right values. |
|
-bor |
Bitwise OR - inclusive |
Returns the bitwise OR operation between left and right values. |
|
-bxor |
Bitwise OR - exclusive |
Returns the bitwise XOR operation between left and right values. |
|
-bnot |
Bitwise NOT |
Returns the bitwise NOT operation between left and right values. |
Some examples are as follows:
# Convert integer 128 into ...
Read now
Unlock full access