Assume that we want to swap the values of two integer variables, a and b. To do this, we write a method
Then we call this method with our a and b variables:
swap(a, b);
Are a and b swapped after this call? If you test it, you will notice that they are not! Why does this not work? Explain in detail.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.