Skip to content

Instantly share code, notes, and snippets.

@cshjin
Created April 13, 2014 13:50
Show Gist options
  • Save cshjin/10584996 to your computer and use it in GitHub Desktop.
Save cshjin/10584996 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main()
{
int a = 5, b = 7;
a = a ^ b;
b = a ^ b;
a = a ^ b;
printf("a=%d b=%d", a, b);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment