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

admin2010-12-16  34

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

选项

答案*str==’\0’ 0

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

最新回复(0)