codice:int conta_parole(char *testo) { int i, j, cnt = 0; char *tmp = (char *) malloc(strlen(testo)); for(i = 0; i < strlen(testo); i++) { for(j = 0; testo[i] != ' ' && testo[i] != '\0'; i++, j++) tmp[j] = testo[i]; if(tmp[j-3] == 'a' && tmp[j-2] == 'r' && tmp[j-1] == 'e') cnt += 1; } return cnt; }![]()