填空题

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

【参考答案】

*str=NULL 或!*str 或*str=’\0’
或sir[0]=’\0’ 或str[0]=NULL