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

Function shift_range

Examples/NoModules/Chapter 08/Ex8_13.cpp:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59double* shift_range(double data[], size_t count, double delta)
60{
61 for (size_t i {}; i < count; ++i)
62 data[i] += delta;
63 return data;
64}
65
66const double* largest(const double data[], size_t count)
67{

Callers 1

normalize_rangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected