int a = 0;
int b = 1;

void func(int *a, int *b){
int tmp;
tmp = *a ^ *b;
*a = tmp ^ *a;
*b = tmp ^ *b;
}