title: Changing values in a local scope
body: <p>Does anyone know of a way I can change the values of variables that are defined locally?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int change(int x, int y);
  
  int main()
  {
      int x = 10;
      int y = 20;
  
      change(x,y);
      printf("x:%d y:%d\n", x, y);
  }
  
  int change(int x, int y)
  {
      x = 20;
      y = 30;
  
      return(x);
      return(y);
  }
  </code></pre>
  
  <p>I want x and y to print 20 and 30 in main().
  I tried returning the values, but that didn't work. Is there another method I might be able to use? I was thinking pointers, but I don't know where to begin.</p>