Created
October 13, 2015 13:05
-
-
Save dd1994/4b506c3bb33b869d0e59 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
#include <stdio.h> | |
int main(void) { | |
int a = 0; | |
int b = 1; | |
printf("%d&%d=%d\n", a, b, a&b); | |
printf("%d&%d=%d\n", a, a, a&a); | |
printf("%d&%d=%d\n", b, b, b&b); | |
printf("%d|%d=%d\n", a, b, a|b); | |
printf("%d|%d=%d\n", a, a, a|a); | |
printf("%d|%d=%d\n", b, b, b|b); | |
printf("%d^%d=%d\n", a, b, a^b); | |
printf("%d^%d=%d\n", a, a, a^a); | |
printf("%d^%d=%d\n", b, b, b^b); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment