Skip to content

Instantly share code, notes, and snippets.

@reza-ryte-club
Created December 25, 2017 23:34
Show Gist options
  • Save reza-ryte-club/8fcebdfdfd60dea40919114bca5aa870 to your computer and use it in GitHub Desktop.
Save reza-ryte-club/8fcebdfdfd60dea40919114bca5aa870 to your computer and use it in GitHub Desktop.
let bitOne = 0b100111
let bitTwo = 0b101000
print(String(bitOne^bitTwo, radix: 2)) // Print the binary XOR output 1111 which is actually 01111
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment