Etudes/BTS/C/Premiere annee/tabDimmensionChaine.c

16 lines
310 B
C
Raw Normal View History

2016-10-14 15:11:52 +00:00
#include <stdio.h>
#include <stdlib.h>
#define NBMOTS 3
#define LONGMAXMOT 10
int main()
{
char tabChaine[NBMOTS][LONGMAXMOT]={"coucou", "salut", "hello"};
int nroMot;
for(nroMot = 0; nroMot < NBMOTS; nroMot++){
printf("%s", tabChaine[nroMot]);
printf("\n");
}
return 0;
}