I'd like to swap two integer arrays without copying their elements :
int Z1[10],Z2[10];
std::swap(Z1,Z2); // works
//int *tmp;*tmp=*Z1;*Z1=*Z2;*Z2=*tmp; // doesn't work
[ expressions involving Z1,Z2 ]
In the third line I commented out what I tried and didn't work Is there a way to do this by swapping pointers instead...