Skip to content

Instantly share code, notes, and snippets.

@lojikil
Created May 26, 2015 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lojikil/47e349ad354d9f4b25b1 to your computer and use it in GitHub Desktop.
Save lojikil/47e349ad354d9f4b25b1 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int
main(void) {
int i = 0, j = 5;
printf("%d, %d, %d\n", i, -~i, ~-i); // 0, 1, -1
printf("%d, %d, %d\n", j, -~j, ~-j); // 5, 6, 4
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment