Skip to content

Instantly share code, notes, and snippets.

@SzymonFortuna
Created January 27, 2013 07:17
Show Gist options
  • Save SzymonFortuna/4647195 to your computer and use it in GitHub Desktop.
Save SzymonFortuna/4647195 to your computer and use it in GitHub Desktop.
#include<stdio.h>
int main()
{
{
#define M1(x,y) ((x)^=(y), (y)^=(x), (x)^=(y))
unsigned int i=3, j=8, k=M1(i,j);
printf("i=%d,, j=%d, k=%d\n",i,j,k);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment