| 6 | double average10(double array[10]); // Function prototype |
| 7 | |
| 8 | int main() |
| 9 | { |
| 10 | // double values[] { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 }; |
| 11 | double values[] { 1.0, 2.0, 3.0 }; // Only three values!!! |
| 12 | std::cout << "Average = " << average10(values) << std::endl; |
| 13 | } |
| 14 | |
| 15 | // Function to compute an average |
| 16 | double average10(double array[10]) /* The [10] does not mean what you might expect! */ |
nothing calls this directly
no test coverage detected