Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ product
Function
product
Examples/Modules/Chapter 19/Ex19_01/Ex19_01.cpp:20–20 ·
view source on GitHub ↗
Function to multiply two values
Source
from the content-addressed store, hash-verified
18
19
// Function to multiply two values
20
long product(long a, long b) { return a * b; }
21
22
// Function to add two values
23
long sum(long a, long b) { return a + b; }
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected