当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

mystrlen函数的功能是计算str所指字符串的长度 并作为函数值返回。请填空。 intmystrlen(


mystrlen函数的功能是计算str所指字符串的长度,并作为函数值返回。请填空。

int mystrlen(char *str)

{ int i;

for(i=0;【17】!= ′\0′;i++);

return(i);

}

参考答案
您可能感兴趣的试题
  • mystrlen函数的功能是计算str所指字符串的长度,并作为函数值返回。请填空。 intmystrlen(

  • mystrlen函数的功能是计算str所指字符串的长度,并作为函数值返回,请填空。int mystrlen(char *str

  • 以下函数fun的功能是返回str所指字符串中以形参c中字符开头的后续字符串的首地址,例如,str所指字

  • mystrlen函数的功能是计算str所指字符串的长度,并作为函数值返回,请填空。int mystrlen(char *str

  • 函数调用strcat(strcpy(str1 str2) str3) 的功能是()。A.将字符串str1复制到字符串str2中后再连

  • 下面函数的功能应该是:删除字符串str中所有与变量ch相同的字符 并返回删除后的结果 例如:若str=”