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

Function larger

Examples/NoModules/Chapter 08/Ex8_15.cpp:21–25  ·  view source on GitHub ↗

Returns the larger of two floating point values

Source from the content-addressed store, hash-verified

19
20// Returns the larger of two floating point values
21double larger(double a, double b)
22{
23 std::cout << "double larger() called." << std::endl;
24 return a > b ? a : b;
25}
26
27// Returns the larger of two long references
28long& larger(long& a, long& b)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected