title: how to swap arrays without copying elements
body: <p>I'd like to swap two integer arrays without copying their elements :</p>
  <pre><code>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 ]
  </code></pre>
  <p>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...</p>