Skip to content

Instantly share code, notes, and snippets.

@qpfiffer
Created July 1, 2014 19:23
Show Gist options
  • Save qpfiffer/3044d2644b3a936f377a to your computer and use it in GitHub Desktop.
Save qpfiffer/3044d2644b3a936f377a to your computer and use it in GitHub Desktop.
int x = 0, y = 1, temp = -1;
temp = y; // temp = 1
y = x; // y = 0
x = temp; // x = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment