Function that attempts to modify an argument and return it
| 14 | |
| 15 | // Function that attempts to modify an argument and return it |
| 16 | double changeIt(double it) |
| 17 | { |
| 18 | it += 10.0; // This modifies the copy |
| 19 | std::cout << "Within function, it = " << it << std::endl; |
| 20 | return it; |
| 21 | } |