add test 3
This commit is contained in:
parent
ca929b5ecd
commit
273cdbcbf8
19
tests/t003.cxl
Normal file
19
tests/t003.cxl
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int sum(int * arr)
|
||||||
|
{
|
||||||
|
int s;
|
||||||
|
for (s = 0; *arr != 0; arr++)
|
||||||
|
{
|
||||||
|
s += *arr;
|
||||||
|
}
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int argc, char * argv[])
|
||||||
|
{
|
||||||
|
int a[] = {5, 6, 7, 0};
|
||||||
|
int b[] = {10, 20, -500, 0};
|
||||||
|
printf("%d;%d\n", sum(a), sum(b));
|
||||||
|
return 0;
|
||||||
|
}
|
1
tests/t003.x
Normal file
1
tests/t003.x
Normal file
@ -0,0 +1 @@
|
|||||||
|
18;-470
|
Loading…
x
Reference in New Issue
Block a user