Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(void){
  3. // Here your code !
  4. unsigned short a,b;
  5.  
  6. a=1;
  7. b=3;
  8.  
  9. printf("a&b=%d\n",a&b);//どちらも比較して1なら1
  10. printf("a|b=%d\n",a|b);//どちらかが比較して1なら1
  11. printf("a^b=%d\n",a^b);//どちらも異なれば1
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement