Mi da questo errore anche se "i" lo dichiaro sia in main che nella funzione !
Cos'è che non capisco ?
Molte grazie.
../prvcmp.c:33: error: ‘i’ undeclared here (not in a function)
codice:int Mstrcmp( char v[i] , char v[i]); int main() { int i ; ..... ...... if (Mstrcmp (v[i] , v[left]) < 0 ) ................. ................. } int Mstrcmp(char s[i] , char t[i]) { int i ; for ( i= 0; s[i] == t[i] ; i++ ) if (s[i] == '\0' ) return 0 ; return s[i] - t[i]; }