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;
}