#include #include #include #define LMAX 256 int main() { char *mots[20] = {NULL}; for(int i = 0; i < 20; i++) mots[i] = (char *)malloc(LMAX * sizeof(char)); int n = 0; char s[LMAX]; while(scanf("%s", s) > 0) { strcpy(mots[n], s); n++; } int nbmots = n; for(int i = nbmots - 1; i >= 0; i--) { printf("%s\n", mots[i]); } for(int i = 0; i < 20; i++) free(mots[i]); return 0; } // main()