首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
若要求从键盘读入含有空格字符的字符串,应使用函数
若要求从键盘读入含有空格字符的字符串,应使用函数
admin
2010-09-05
29
问题
若要求从键盘读入含有空格字符的字符串,应使用函数
选项
A、getc()
B、gets()
C、getehar()
D、scanf()
答案
B
解析
scanf()语句用“空格”区别不同的字符串;getc()与getchar()语句不能用于字符串的读入。
转载请注明原文地址:https://kaotiyun.com/show/GzPp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
确定图片框Picture1在窗体上位置的属性是( )。
A、选择B、投影C、自然连接D、并A由关系R到关系S为一元运算,排除C和D。关系S是关系R的一部分,是通过选择之后的结果,因此选A。
工程文件中包含一个模块文件和一个窗体文件。模块文件的程序代码是:PublicxAsIntegerPrivateyAsInteger窗体文件的程序代码是:DimaAsIntegerPrivateSubForm_Load()
有下面程序代码:PrivateSubCommand1_Click()i=1DoWhilei<5j=1Doj=j+1Pr
下面的程序运行时,单击窗体后,窗体上显示的结果是()。PrivateSubForm_Click()Dima(1To6)AsIntegerDimmin1%,i%,j%,n%,t%,k%a(1)=8:a(2)=6
设有下列语句:x=5Ifx>0Theny=1y=5程序运行后,则下列叙述中正确的是()。
某人编写了下面的程序,希望能把Textl文本框中的内容写到Temp.txt文件中PrivateSubCommandl_Click()Open”Temp.txt”ForOutputAs#2Print”Textl”Close#2
设有以下函数过程PdvateFunctionFun(a()AsInteger,bAsSlring)AsIntegerEndFunction若已有变量声明:Dimx(5)AsInteger
现有语句:y=IIf(x>0,xMod3,0)设x=10,则y的值是( )。
随机试题
为落实从军的货币政策,中国人民银行2008年1月16日宣布,从2008年1月25日起,上调存款类金融机构人民币存款准备金率
不属于肝癌超声表现的是
4个月女婴,突然惊厥发作,患儿从出生后牛奶喂养。未加辅食,近一日流涕,时有哭闹,但无发热及咳嗽,不呕吐,二便正常。查体:体温37.8℃,面色灰白,双眼上翻,面部肌肉颤动,四肢抖动,心肺正常,前囟平坦,颈强(一),枕部有乒乓球感。该患儿诊断是
有关更年期病理生理的变化,下列哪一项是错误的
小儿易患疳病的原因是()
机动车在高速公路行驶,以下正确的说法是()。
易燃固体的火灾危险性表现在()。
证券监管部门对证券公司董事、监事和高级管理人员的任职资格实行()。
贷款管理是商业银行资产管理的重点,其主要内容有()。
Onlytwocountriesintheadvancedworldprovidenoguaranteeforpaidleavefromworktocareforanewbornchild.Lastspring
最新回复
(
0
)