Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
25f49f9a80447a0365d52881dbcffd8a8df58b6c
/
.
/
examples
/
c++
/
sum_over_array.cpp
blob: 601ef1600b30d0f4b510d4a7b0b5182da94757e1 [
file
] [
log
] [
blame
] [
raw
]
int
testFunction
(
int
*
input
,
int
length
)
{
int
sum
=
0
;
for
(
int
i
=
0
;
i
<
length
;
++
i
)
{
sum
+=
input
[
i
];
}
return
sum
;
}