填空题

mystrlen函数的功能是计算str所指字符中的长度,并作为函数值返回,请填空。
int mystrlen(char * str)
int i;
for(i=0; 【8】 !=’\0’;i++);
return(i);

【参考答案】

【8】* (str+i)或str[i]