potresti anche farti un ciclo tipo
codice:char str[512]; int j , ch ; for( j = 0 ; ( ch = getchar () ) != '\n' ; j++ ) str [ j ] = ch ; str [ j ] = '\0';
potresti anche farti un ciclo tipo
codice:char str[512]; int j , ch ; for( j = 0 ; ( ch = getchar () ) != '\n' ; j++ ) str [ j ] = ch ; str [ j ] = '\0';