MCPcopy Create free account
hub / github.com/ShiqiYu/CPP / main

Function main

week06/examples/lab/main.cpp:5–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <iostream>
4#include "mymath.h"
5int main()
6{
7 float arr1[8]{1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f};
8 float * arr2 = NULL;
9
10 float sum1 = arraySum(arr1, 8);
11 float sum2 = arraySum(arr2, 8);
12
13 std::cout << "The result1 is " << sum1 << std::endl;
14 std::cout << "The result2 is " << sum2 << std::endl;
15
16 return 0;
17}

Callers

nothing calls this directly

Calls 1

arraySumFunction · 0.70

Tested by

no test coverage detected