fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. unsigned short a=1,b=3;
  6.  
  7. printf("a & b is %d\n",a&b);
  8. printf("a|b is %d\n",a|b);
  9. printf("a^b is %d\n",a^b);
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
a & b is 1
a|b is 3
a^b is 2