首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
在下面函数的横线处填上适当的内容,使该函数能够利用递归方法求解字符串str的长度 (不得使用系统提供的字符串处理函数)。 int GJetLen(char*str) { if(【 】) return 0; else return 1+GetLen (st
在下面函数的横线处填上适当的内容,使该函数能够利用递归方法求解字符串str的长度 (不得使用系统提供的字符串处理函数)。 int GJetLen(char*str) { if(【 】) return 0; else return 1+GetLen (st
admin
2013-02-27
41
问题
在下面函数的横线处填上适当的内容,使该函数能够利用递归方法求解字符串str的长度 (不得使用系统提供的字符串处理函数)。
int GJetLen(char*str)
{
if(【 】) return 0;
else return 1+GetLen (str+1);
}
选项
答案
*str==NULL
解析
转载请注明原文地址:https://jikaoti.com/ti/7TE0FFFM
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
有下列程序:#include<stdio.h>#include<string.h>main(){chara[5][10]={”efg”,”abcd”,”mnopq”,”hijkl”,”rstuvwxy
有下列程序:#include<stdio.h>main(){charv[4][10]={t.efg”,”abcd”,”mnopq”,”hijkl”},。p[4],t;inti,j;
有下列程序:#include<stdio.h>voidfun(inta[],intn,intflag){inti=0,j,t;for(i=0;i<n﹣1;i++)for(
以下说法错误的是()。
已知程序中已经定义了函数test,其原型是int test(int,int,int);,则下列重载形式中正确的是
在算法正确的前提下,评价一个算法的两个标准是【】。
已知一程序运行后执行的第一个输出操作是cout<<setw(10)<<setfill(’*’)<<1234;则此操作的输出结构是()。
考虑下面的函数原型:voidtestDefaulParam(inta,intb=7,charz=’*’);下面的函数调用中,不合法的是()。
C++语言中,编译过程后生成的文件类型为()。
随机试题
简述贯彻系统性原则,对教师的要求。
需求的收入弹性是指因收入变动而引起的需求的相应变动率。高档食品、耐用消费品、娱乐支出的需求收入弹性一般表现为 ()
城市建设用地分为()大类。
聚乙烯(HDPE)膜防渗层的施工程序是()。
企业在薪酬调查时,需要调查的薪酬政策包括()。
左边给定的是纸盒的外表面,下面哪一项不能由它折叠而成?()
试述南京国民政府的自治法规的优缺点。
WarrenBuffett,whowillhostBerkshireHathaway’sannualshareholders’meetingonMay3rd,isaniconofAmericancapitalism.A
Increasingly,overthepasttenyears,people—especiallyyoungpeople—havebecomeawareoftheneedtochangetheireatinghabit
A、Astudythattheirchemistryprofessordid.B、Aclassthatthewomanistaking.C、Achemistryassignment.D、Ajobpossibility.
最新回复
(
0
)