source: Deliverables/D2.2/8051/tests/clight/testTB_Array_double.c @ 486

Last change on this file since 486 was 486, checked in by ayache, 9 years ago

Deliverable D2.2

File size: 271 bytes
RevLine 
[486]1int t2[5] = {13, 21, 34, 55, 89};
2
3int array_double (int tableau1[], int tableau2[], int i, int j) {
4        int a;
5
6        a = tableau2[i];
7
8        tableau1[j] = tableau2[j]+a;
9
10        return tableau1[j];
11}
12int main(){
13        int t1[5] = {0,0,0,0,0};
14        return array_double(t1,t2,0,0);
15}
Note: See TracBrowser for help on using the repository browser.