MCPcopy Create free account
hub / github.com/bewuethr/stroustrup-ppp / print_array

Function print_array

chapter17/chapter17_drill.cpp:12–15  ·  view source on GitHub ↗

7

Source from the content-addressed store, hash-verified

10
11// 7
12void print_array(ostream& os, int* a, int n) {
13 for (int i = 0; i<n; ++i)
14 os << a[i] << "\n";
15}
16
17// 10
18void print_vector(ostream& os, vector<int> v) {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected