Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void){
- // Here your code !
- unsigned short a,b;
- a=1;
- b=3;
- printf("a&b=%d\n",a&b);//どちらも比較して1なら1
- printf("a|b=%d\n",a|b);//どちらかが比較して1なら1
- printf("a^b=%d\n",a^b);//どちらも異なれば1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement