给定5个字符串,输出其中最大的字符串。
给定5个字符串,输出其中最大的字符串。
A. #include #include main(){char *max;char *str[5]={“ms”,“windows”,“turbo C”,“basic”,“borland C++”};int i;max=str[0];for(i=0;i<5;i++)if(strcmp(str[i],max)>0)max=str[i];printf(“The largest string:%s\n”,max);}