Comment afficher un tableau en C ?
Pour afficher un tableau en C, il est nécessaire d'utiliser une boucle afin d'afficher chaque cellule du tableau individuellement :
// Déclaration du tableau
int i, Tab[5]={10, 20, 40, 80, 160};
// Boucle d'affichage des cellules du tableau
for (int i=0 ; i<5 ; i++)
printf ("%d\t", Tab[i]);
Pour afficher un tableau en C, il est nécessaire d'utiliser une boucle afin d'afficher chaque cellule du tableau individuellement :
// Déclaration du tableau
int i, Tab[5]={10, 20, 40, 80, 160};
// Boucle d'affichage des cellules du tableau
for (int i=0 ; i<5 ; i++)
printf ("%d\t", Tab[i]);
Pour afficher un tableau en C, il est nécessaire d'utiliser une boucle afin d'afficher chaque cellule du tableau individuellement :
// Déclaration du tableau
int i, Tab[5]={10, 20, 40, 80, 160};
// Boucle d'affichage des cellules du tableau
for (int i=0 ; i<5 ; i++)
printf ("%d\t", Tab[i]);
| # | ID | Query | URL | Count |
|---|---|---|---|---|
| 0 | 9860 | afficher tableau langage c | https://fr.ans.wiki/2625/comment-afficher-un-tableau-en-c | 1 |
| 1 | 9859 | comment afficher un tableau en c | https://fr.ans.wiki/2625/comment-afficher-un-tableau-en-c | 2 |
| 2 | 9153 | comment afficher une structure de tableau en C | https://fr.ans.wiki/2625/comment-afficher-un-tableau-en-c | 1 |
| 3 | 8140 | Comment afficher le tableau Mate | https://fr.ans.wiki/2625/comment-afficher-un-tableau-en-c | 1 |
| 4 | 7985 | affichage d'un tableau en c | https://fr.ans.wiki/2625/comment-afficher-un-tableau-en-c | 1 |
| 5 | 7427 | c afficher tableau | https://fr.ans.wiki/2625/comment-afficher-un-tableau-en-c | 1 |
| 6 | 5393 | afficher tableau int c | https://fr.ans.wiki/2625/comment-afficher-un-tableau-en-c | 1 |
| 7 | 3388 | c afficher un tableau | https://fr.ans.wiki/2625/comment-afficher-un-tableau-en-c | 1 |
| 8 | 3372 | afficher un tableau en c | https://fr.ans.wiki/2625/comment-afficher-un-tableau-en-c | 6 |
| 9 | 2233 | affichage tableau c | https://fr.ans.wiki/2625/comment-afficher-un-tableau-en-c | 2 |