title: I am having trouble figuring out the values of parameter passing
body: <p>what would be the outcome of calling the procedure using </p>
  
  <p>a) Pass by value<br>
  b) Pass by reference<br>
  c) Pass by name<br>
  d) Pass by value-result</p>
  
  <pre><code>void main () {
  int value = 2, list[5] = {1, 3, 5, 7, 9}; swap (value, list[0]);
  swap (list[0], list[1]);
  swap (value, list[value]);
  }
  void swap (int a, int b) {
  int temp;
  temp = a; a = b;
  b = temp;
  }
  </code></pre>