source:
Deliverables/D2.2/8051/tests/clight/testTB_boucle.c
@
486
Last change on this file since 486 was 486, checked in by , 10 years ago | |
---|---|
File size: 322 bytes |
Rev | Line | |
---|---|---|
[486] | 1 | int t1[5] = {1,2,3,5,8}; |
2 | int t2[5] = {13,21,34,55,89}; | |
3 | ||
4 | void 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 | ||
11 | int 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.