Skip to content

Instantly share code, notes, and snippets.

@legumbre
Created April 3, 2012 19:10
Show Gist options
  • Save legumbre/2294803 to your computer and use it in GitHub Desktop.
Save legumbre/2294803 to your computer and use it in GitHub Desktop.
printf("%x xor %x = %x \n", a, b, a ^ b);
printf("%x xor %x = %x \n", a, res, a ^ res);
printf("%d - %d = %d (overflow: %d)\n", a, b, res, overflow);
printf("%x - %x = %x (overflow: %x)\n", a, b, res, overflow);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment