填空题

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

【参考答案】

*(str+i) 或 str[i]