title: Swapping addresses of pointers in C++
body: <p>How can one swap pointer addresses within a function with a signature?</p>
  
  <p>Let's say:</p>
  
  <pre><code>int weight, height;
  void swap(int* a, int* b);
  </code></pre>
  
  <p>So after going out of this function the addresses of the actual parameters (<code>weight</code> and <code>height</code>) would be changed. Is it possible at all?</p>