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

16 lines
310 B
C
Raw Normal View History

2016-10-14 13:21:09 +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;
}