Given this piece of code
void swap(int x, int y)
{ x= x + y;
y= x - y;
x= x - y;
}
main ()
{ i = 1;
a[0]=2;
a[1]=1;
a[2]=0;
swap(i,a[i]);
printf("%d %d %d %d\n", i, a[0], a[1], a[2]);
swap(a[i], a[i])
printf("%d %d %d %d\n", i, a[0], a[1], a[2]);
return 0;
}
what will be printed out
hope some one can help