[主观题]

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

int mystrlen(char *str)

{ int i;

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

return(i);

}

参考答案与解析: