Home > Back-end >  The solution is
The solution is

Time:09-20

1. A number of input string (up to 19), ended up with an empty string, character of length is the longest word in the array
Bincludecwtdio. P
The include cstrings HP
F char key (20) [20] "I
Int length I, p:
Length - 0: I - 0
Gets (keyin
Whiled
& & & lt; 19)
(if (strlen (key (I) p - length)
Psi:)
Gets (keylin) :
Printf (" the length of the longest string is the first % d string, length of dap LNHK + 1

CodePudding user response:

Questions about clarity, but was not interested in writing the program,

CodePudding user response:

 char * func (char * * strArry, int num_of_str) {
if (! StrArry)
return 0;
Char * ret=strArry;
While (num_of_str) {
StrArry++;
Num_of_str -;
If (strlen (* strArry) & gt;=STR (ret))
Ret=* strArry;
}
return ret;
}
  • Related