previous | index | next

More on Argument Passing

Q: Will the following swap function work?

void swap(int a, int b) {
  int temp = a;
  a = b;
  b = temp;
}

A:


previous | index | next