首页 > 职业考试题库1 > 题目详情
阅读以下函数:fun(char*s1,char*s2) {int i=0;whi
题目内容:
[单选题]阅读以下函数: fun(char*s1, char*s2) { int i=0; while(s1[i]==s2[i]&& s2[i]!='/0') i++; return(s1[i]==&& s2{i)!=='/0'); } 此函数的功能是( )。
A.将s2所指字符串赋给s1
B.比较s1和s2所指字符串的大小,若s1比s2的大,函数值为1,否则函数值为0
C.比较s1和s2所指字符串是否相等,若相等,函数值为1,否则函数值为0
D.比较s1和s2所指字符串的长度,若s1比s2的长,函数值为1,否则函数值为0
本题链接: