| 4 | double changeIt(double* pointer_to_it); // Function prototype |
| 5 | |
| 6 | int main() |
| 7 | { |
| 8 | double it {5.0}; |
| 9 | double result {changeIt(&it)}; // Now we pass the address |
| 10 | |
| 11 | std::cout << "After function execution, it = " << it |
| 12 | << "\nResult returned is " << result << std::endl; |
| 13 | } |
| 14 | |
| 15 | // Function to modify an argument and return it |
| 16 | double changeIt(double* pit) |
nothing calls this directly
no test coverage detected