Created
April 5, 2017 19:16
-
-
Save VojtaStavik/d0fba10e04474718ae04b00cb1b91bf2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x & y | |
// Bitwise AND: Combines the bits of two numbers. | |
// It returns a new number whose bits are set to 1 only | |
// if the bits were equal to 1 in both input numbers | |
Example: | |
7 ==> 0 1 1 1 | |
3 ==> 0 0 1 1 | |
-------------- | |
7 & 3 ==> 0 0 1 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment