title: How to change the address of a variable with functions?
body: <p>I am trying to change the address of a certain variable using a function, but i don't know the way to do this... However this is my go:</p>
  
  <pre><code>void address (int* x, int* y)
  {
      x = y;
  }
  
  int main(void)
  {
      int x = 2;
      int y = 4;
  
      address(&amp;x, &amp;y);
      printf("%d", x);
  
      return 0;
  }
  </code></pre>