Can anyone please explain the output of the following code. I failed to explain myself.
Code:#include <stdio.h> #define SWAP(x,y) { int temp = x; printf("%d %d\n",x,y); x = y; printf("%d %d\n",x,y); y = temp; printf("%d %d\n",x,y);} int main() { int temp = 1; int b = 2; SWAP(temp,b); printf("%d %d\n",temp,b); return 0; }