MCPcopy Create free account
hub / github.com/changkun/modern-cpp-tutorial / foo

Function foo

code/4/4.1.cpp:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include <array>
11
12void foo(int *p, int len) {
13 for (int i = 0; i != len; ++i) {
14 std::cout << p[i] << std::endl;
15 }
16}
17
18int main() {
19 std::array<int, 4> arr= {1,4,3,2};

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected