Skip to content
Snippets Groups Projects
Commit ff5616b2 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

iteration sur tableau

parent 2d04b5e6
No related branches found
No related tags found
No related merge requests found
...@@ -251,9 +251,24 @@ int main(void) { ...@@ -251,9 +251,24 @@ int main(void) {
return 0; return 0;
} }
``` --> ``` -->
# Les tableaux (3/N)
## Itérer sur les éléments d'un tableau
# Les tableaux (3/N) ```C
int x[10];
for (int i = 0; 0 < 10; ++i) {
x[i] = 0;
}
int j = 0;
while (j < 10) {
x[j] = 1;
j += 1;
}
```
# Les tableaux (4/N)
## Les tableaux comme argument ## Les tableaux comme argument
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment