1
0

n.c 447 B

12345678910111213141516171819202122
  1. int main() {
  2. int a = 60; //0011 1100 60
  3. int b = 13; //0000 1101 13
  4. int c = a && b; //1 (logical and)
  5. int d = a || b; //1 (logical or)
  6. int e = a & b; //0000 1100 12 (bitwise and)
  7. int f = a | b; //0011 1101 61 (bitwise or)
  8. int g = a ^ b; //0011 0001 49 (bitwise xor)
  9. g = ~(~g); //double not == identity
  10. g = g << b;
  11. g = g >> b;
  12. return c+d+e+f+g; // 124
  13. }
  14. void interrupt()
  15. {
  16. }