title: Misunderstood topic
body: <blockquote>
    <p>Define a function CoordTransform() that transforms its first two input
    parameters xVal and yVal into two output parameters xValNew and
    yValNew. The function returns void. The transformation is new = (old +
    1) * 2. Ex: If xVal = 3 and yVal = 4, then xValNew is 8 and yValNew is
    10.</p>
  </blockquote>
  
  <p>Question: I have to make this code, it is for homework in a text book. I'm not quite understanding the whole section. So, I'm asking for help and an explanation. Thank you!</p>
  
  <p>My code is as followed:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  /* Your solution goes here  */
  void CoordTransform( int* xValNew, int* yValNew) 
  {
     *xValNew = ((xValNew +1) * 2);
     *yValNew = ((yValNew +1) * 2);
     return;
  }
  
  int main(void) {
      int xValNew = 0;
      int yValNew = 0;
  
      CoordTransform(3, 4, &amp;xValNew, &amp;yValNew);
      printf("(3, 4) becomes (%d, %d)\n", xValNew, yValNew);
  
      return 0;
  }
  </code></pre>