Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ main
Function
main
Examples/NoModules/Chapter 08/Ex8_10.cpp:7–16 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5
void print_it(const double& it) { std::cout << it << std::endl; }
6
7
int main()
8
{
9
double d{123};
10
double_it(d);
11
print_it(d);
12
13
int i{456};
14
// double_it(i); /* error, does not compile! */
15
print_it(i);
16
}
Callers
nothing calls this directly
Calls
2
double_it
Function · 0.70
print_it
Function · 0.70
Tested by
no test coverage detected