Rewrite the isShorter function from § 6.2.2 (p. 211) to be inline.
§ 6.2.2 (p. 211)
Exercise 6.11
Write and test your own version of reset that takes a reference.
Exercise 6.12
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.