Rewrite the program from exercise 6.10 in § 6.2.1 (p. 210) to use references instead of pointers to swap the value of two ints. Which version do you think would be easier to use and why?
§ 6.2.1 (p. 210)
Exercise 6.10
Using pointers, write a function to swap the values of two ints. Test the function by calling it and printing the swapped values.
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.