在下面函数的横线处填上适当的内容,使该函数能够利用递归方法求解字符串str的长度 (不得使用系统提供的字符串处理函数)。 int GJetLen(char*str) { if(【 】) return 0; else return 1+GetLen (st

admin2013-02-27  37

问题 在下面函数的横线处填上适当的内容,使该函数能够利用递归方法求解字符串str的长度 (不得使用系统提供的字符串处理函数)。
int GJetLen(char*str)
{
if(【  】) return 0;
else return 1+GetLen (str+1);
}

选项

答案*str==NULL

解析
转载请注明原文地址:https://kaotiyun.com/show/ZoNp777K
0

最新回复(0)