I got function to find longest sentence in array of sentences how can i now turn this to find the shortest and then copy that into char R[red]; and then manipulate over last word of the sentence of the shortests one to change first and last letter into uppercase
void longest (char SENTENCE[max][red],char R[red], int n){
int longest = 0;
for (int i = 0 ; i < n ; i++){
if(strlen(SENTENCE[i]) > longest){
longest = strlen(SENTENCE[i]);
strcpy_s(R,red,SENTENCE[i]);
}
}