int x = 3; int y = 5; printf("Before\n[x, y] = [%d, %d]\n", x, y); x ^= y ^= x ^= y; printf("After\n[x, y] = [%d, %d]\n", x, y);