Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdint.h>
- int main() {
- uint32_t a = 0;
- uint32_t b = 1;
- uint32_t c = 0;
- uint32_t d = 1;
- uint32_t e = 0xfffffffd;
- uint32_t f = 0xfffffffd;
- a = -a;
- b = -b;
- c = 1u + ~c;
- d = 1u + ~d;
- e = -e;
- f = 1u + ~f;
- printf("a: %x, b: %x, c: %x, d: %x, e: %x, f: %x", a, b, c, d, e, f);
- }
Add Comment
Please, Sign In to add comment