首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
函数mystrlen(char *s)的功能是求字符串s的长度,请填空。 mystrlen(char *s) { char *t: t=s; while(【 】)t++; return(t-s);
函数mystrlen(char *s)的功能是求字符串s的长度,请填空。 mystrlen(char *s) { char *t: t=s; while(【 】)t++; return(t-s);
admin
2009-02-15
20
问题
函数mystrlen(char *s)的功能是求字符串s的长度,请填空。
mystrlen(char *s)
{ char *t:
t=s;
while(【 】)t++;
return(t-s);
}
选项
答案
*t
解析
通过while循环扫描字符串,遇到字符‘\0’结束,并用t统计字符串的长度。
转载请注明原文地址:https://kaotiyun.com/show/pwXp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
下面正确使用动态数组的是
假定一个VisualBasic应用程序由一个窗体模块和一个标准模块构成。为了保存该应用程序,以下正确的操作是
有如下程序:Functionfun(ByValsumAsInteger)AsIntegerDimkAsIntegerk=1num=Abs(num)DoWhilesumk=k*(humMod10):sum=sum\10L
以下变量名中合法的是
用语句Open"C:\teac.txt"ForInputAs#1打开文件后,就可以编程序
为了在Form_Load事件过程中用Print方法在窗体上输出指定的内容,首先应执行的操作是
下面关于控件数组的叙述中正确的是
有三个关系R、S和T如下:则由关系R和S得到关系T的操作是
下列关于顺序文件的描述中,正确的是()。
fun函数的功能是:首先对a所指的N行N列的矩阵,找出各行中的最大的数,再求这N个最大值中的最小的那个数作为函数值返回。请填空。#include<stdio.h>#defineN100intfun(int(*a)[N])
随机试题
患者,女,48岁,服用抗菌药物后,检查发现跟腱断裂,请药师确定可能的药物是
2020年1月1日,甲公司以银行存款1100万元(含已到付息期但尚未支付的利息50万元)购入乙公司债券,另支付交易费用5万元。该债券面值为1000万元,票面年利率为5%,每年1月3日付息,实际年利率为3.2%。甲公司根据其管理该债券的业务模式和该债券的合同
某公司利用长期债券、优先股、普通股、留存收益来筹集长期资金1000万元,以上各项筹资额分别为500万元、300万元、150万元、50万元,资金成本率分别为5%、10%、15%、20%。则该项投资组合的综合资金成本率为( )。
个体发展心理学将人的一生划分为如下几个阶段:()。
Thenationaltabletennisteam______hardtowinhonorforChinatheseyears.
SQL语言中,能正确实现级联删除的命令是
如果要在窗体上画一个标签,应在工具箱窗口中选择的图标是( )。
使用VC++2010打开考生文件夹下blank1中的解决方案。此解决方案的项目中包含一个源程序文件blank1.c。在此程序中,函数fun的功能是:将参数给定的字符串、整数、浮点数写到文本文件中,再用字符串方式从此文本文件中逐个读入,并调用库函数atoi和
______everythingmeanstoknownothing.
AlanGreenspan:theMostPowerfulGuyWiththeAmerican’sMidtermElectionsover,andanewCommander-in-Chiefabouttostep
最新回复
(
0
)