title: Which argument in a function is called first?
body: <p>I cannot figure out the reason why I am getting this result. I am not the order in which the function calls it's arguments. I would assume that it would start at the first argument and go until the last. Here's the code...</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int addmeup(int a, int b, int c){
  
      printf("a:%d\n", a);
      printf("b:%d\n", b);
      printf("c:%d\n", c);
  
      return a + 2 * b + 3 * c;
  
  }
  int main(){
  
      int x = 1;
      int y = addmeup(x++,x++,x++);
  
      printf("x:%d\n", x);
      printf("y:%d\n", y);
  
      return 0;
  }
  </code></pre>
  
  <p>I don't know why the result I am getting is...</p>
  
  <pre><code>a:3
  b:2
  c:1
  x:4
  y:10
  </code></pre>
  
  <p>For the function <code>addmeup()</code> why wouldn't the a be 1 instead of 3? Then b would be 2 and c would be 3. But it is the opposite. Can't seem to wrap my head around this.</p>