下面程序的功能是从输入的十个字符串中找出最长的那个串。请在________处填空。
#include "stdio.h"
#include "string.h"
#define N 10
main()
{
char s[N][81], * t;
int j;
for (j=0; j<N; j++)
{
gets (s[j]);
}
t= *s;
for (j=1; j<N; j++)
{
if (strlen(t)<strlen(s[j]))
{
________;
}
printf("the max length of ten strings is: %d, %s\n", strlen(t), t);
}
}
A. t=s[j] B. t=&s[j] C. t= s++ D. t=s[j][0]
|
|