//Compter les caractères d'une chaîne #include #include int main(void) { char mot[80]; int i ; printf("Entrez un mot : "); scanf("%s",mot); i=0; while (mot[i]!='\0') { i = i + 1 ; } printf("Dans le mot %s il y a %d caracteres\n",mot,i); system("pause"); return 0 ; }