ma lol, funge! che newbie che sono...codice:int main(){ char *a[4]={"abcd", "efgh", "afgh", "xyzx"}; char b[]="fgh"; int i,j,l,ok; for (i=0; i<4; i++){ ok=1; l=strlen(a[i])-3; for (j=0; j<3; j++){ if(a[i][l]!= b[j]) ok=0; l++; } printf("%d", ok); } return 0; }![]()
La prossima volta prima di aprire un thread faccio almeno un tentativo.
Grazie UBeginner![]()