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

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

Deliverable D2.2

File size: 322 bytes
Line 
1int t1[5] = {1,2,3,5,8};
2int t2[5] = {13,21,34,55,89};
3
4void TB_Boucle (int tabEntree1[], int tabEntree2[],int tabSortie[], int size) {
5        int i;
6        for (i = 0; i < size; i++){
7                tabSortie[i] = tabEntree1[i]+tabEntree2[i];
8        }
9}
10
11int main(){
12        int out[5] = {0,0,0,0,0};
13        TB_Boucle(t1,t2,out,5);
14        return out[4];
15}
Note: See TracBrowser for help on using the repository browser.