Contact: aviboots(AT)netvision.net.il
39,890 questions
51,819 answers
573 users
#include <stdio.h> #define SWAP(x, y) (x ^= y ^= x ^= y) int main() { int a = 3, b = 7; SWAP(a, b); printf("a = %d b = %d", a, b); return 0; } /* run: a = 7 b = 3 */