题目详情
单选题 若有定义"char str1[30],str2[30];",则输出较大字符串的正确语句是( )
A. if(strcmp(str1,str2)) printf("%s",str1)
B. if(strl1>str2) printf("%s",str1)
C. if(strcmp(str1,str2)>0) printf("%s",str1); else printf("%s",str2)
D. if( strcmp(str1)>strcmp(str2)) printf("%s",str1)

学科:默认课程
时间:2025-11-19 10:21:40
相关题目
相关作业
