title: In C language execution of function is from right to left or left to right?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/949433/could-anyone-explain-these-undefined-behaviors-i-i-i-i-i-etc">Could anyone explain these undefined behaviors (i = i++ + ++i , i = i++, etc&hellip;)</a><br>
    <a href="https://stackoverflow.com/questions/9566187/function-parameter-evaluation-order">function parameter evaluation order</a>  </p>
  </blockquote>
  
  
  
  <p>enter code hereIn C language execution of function is from right to left or left to right? I found it is from right to left.(Execution of function means in which order it pass the argument).</p>
  
  <p>So i want to know is there any case of function or any inbuilt function in c which execute from left to right?</p>
  
  <p>EXAMPLE:-</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  int print(int a,int b);
  int main()
  {
      int a=10,b=20;
      print(++a,a++);
      getch();
      return 0;
  }
  
  int print(int a,int b)
  {
      printf("%d %d",a,b);
  }
  </code></pre>
  
  <p>So in this it starts from right side and pass <code>a=10</code> than <code>a++</code> so now <code>a=11</code>
  than <code>++a</code> so now <code>a=12</code> than it pass <code>a=12</code> so in print function it prints <code>12 10</code></p>