MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / main

Function main

Examples/Modules/Chapter 08/Ex8_05.cpp:7–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5double average(double array[], size_t count); // Function prototype
6
7int main()
8{
9 double values[] {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0};
10 std::cout << "Average = " << average(values, std::size(values)) << std::endl;
11}
12
13// Function to compute an average
14double average(double array[], size_t count)

Callers

nothing calls this directly

Calls 1

averageFunction · 0.70

Tested by

no test coverage detected