logo - 刷刷题
下载APP
【简答题】

下面函数string_cmp( )用于实现函数strcmp( )的功能,将两个字符串s和t进行比较,然后将两个字符串中第一个不相同字符的ASCII码值之差作为函数值返回。请将程序补充完整。 int string_cmp(char s[ ], char t[ ]) { int i=0; while(s[i]!='\0'&&t[i]!='\0') { if( (1) ) break; (2) ; } return (3) ; }

举报
参考答案:
参考解析:
.
刷刷题刷刷变学霸
举一反三