Guest User

Untitled

a guest
Jun 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdint.h>
  3.  
  4. int main() {
  5. uint32_t a = 0;
  6. uint32_t b = 1;
  7.  
  8. uint32_t c = 0;
  9. uint32_t d = 1;
  10.  
  11. uint32_t e = 0xfffffffd;
  12. uint32_t f = 0xfffffffd;
  13.  
  14. a = -a;
  15. b = -b;
  16.  
  17. c = 1u + ~c;
  18. d = 1u + ~d;
  19.  
  20. e = -e;
  21. f = 1u + ~f;
  22.  
  23. printf("a: %x, b: %x, c: %x, d: %x, e: %x, f: %x", a, b, c, d, e, f);
  24. }
Add Comment
Please, Sign In to add comment