title: Passing expression as a parameter in Call by reference
body: <p>All,</p>
  
  <p>When we are passing an expression as a parameter, how does the evaluation occur? Here is a small example. This is just a <strong>pseudocode kind of example</strong>:</p>
  
  <pre><code>f (x,y)
  {
      y = y+1;
      x = x+y;
  }
  main()
  {
      a = 2; b = 2;
      f(a+b, a)
      print a;
  }
  </code></pre>
  
  <p>When accessing variable <code>x</code> in <code>f</code>, does it access the address of the temp variable which contains the result of <code>a+b</code> or will it access the individual addresses of <code>a</code> and <code>b</code> and then evaluate the value of <code>a+b</code></p>
  
  <p>Please help.</p>
  
  <p>Regards,
  darkie15</p>