Guest User

Untitled

a guest
Jan 17th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. a&b 1 bitwise AND
  2. a|b 21 bitwise OR
  3. a^b 20 XOR (16+4) “just one”
  4. a&&b 1 logical AND
  5. a||b 1 logical OR
  6. -b -5 minus b
  7. ~b -6 ?
  8. ~(~a) 17 ?
  9. !b 0 logical “NOT B”
  10. !(!a)) 1 logical “NOT NOT A”
  11. a=b 0 “a==b?”
  12. a=’A’ 65 ?
  13. a|’@’ 64 ?
  14.  
  15. a&b 1 bitwise AND
  16. a|b 21 bitwise OR
  17. a^b 20 XOR (16+4) “just one”
  18. a&&b 1 logical AND
  19. a||b 1 logical OR
  20. -b -5 minus b
  21. ~b -6 bitwise NOT
  22. ~(~a) 17 bitwise NON NOT - the same as a
  23. !b 0 logical “NOT B”
  24. !(!a)) 1 logical “NOT NOT A”
  25. a=b 5 assignment to a the value of b
  26. a='A' 65 assignment to a the ASCII value of char 'A'
  27. a|'@' 81 a OR ASCII value of char '@'
  28.  
  29. ~b -6 ?
  30.  
  31. ~(~a) 17 ?
  32.  
  33. a=’A’ 65 ?
  34.  
  35. a|’@’ 64 ?
  36.  
  37. ~b - binary NOT b
  38. ~(~a) - binary NOT ( NOT a )
  39. a='@' - assign the int value of '@' to a
  40. a|'A' - bitwise OR with the int value of 'A'
Add Comment
Please, Sign In to add comment