Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
342427ecdeb1ade4f59272414c2e3fe65fe00db1
/
.
/
examples
/
c
/
Sum_over_array.c
blob: 287a06628c511a58c7aab34e830c85645ea1dee7 [
file
] [
log
] [
blame
] [
raw
]
int
testFunction
(
int
*
input
,
int
length
)
{
int
i
,
sum
=
0
;
for
(
i
=
0
;
i
<
length
;
++
i
)
{
sum
+=
input
[
i
];
}
return
sum
;
}