首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
若要求从键盘读入含有空格字符的字符串,应使用函数
若要求从键盘读入含有空格字符的字符串,应使用函数
admin
2013-02-23
21
问题
若要求从键盘读入含有空格字符的字符串,应使用函数
选项
A、getc()
B、gets()
C、getchar()
D、scanf()
答案
B
解析
scanf()语句用“空格”区别不同的字符串;getc()与getchar()语句不能用于字符串的读入。
转载请注明原文地址:https://kaotiyun.com/show/AaPp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
按照C语言规定的用户标识符命名规则,不能出现在标识符中的是()。
以下叙述中正确的是()。
以下程序的运行结果是()。#include<stdio.h>#defineMIN(x,y)(x)<(y)?(x):(y)main(){inti=10,j=15,k;k=10*MIN(i,
若有说明:inta[][4]={0,0};则下面不正确的叙述是()。
以下函数sstrcat的功能是实现字符串的连接,即将t所指字符串复制到s所指字符串的尾部。例如:,所指字符串为abed,t所指字符串为efgh,调用函数sstrcat后s所指字符串为abcdefgh。请填空。#inehde<stdio.h>
下列叙述中,错误的一条是______。
以下对结构体类型变量td的定义中,错误的是 ______。
以下叙述中错误的是 ______。
软件工程研究的内容主要包括:【】技术和软件工程管理。
随机试题
组织的战略计划活动通常包括的步骤有()
苏轼《前赤壁赋》:驾一叶之扁舟,__________。
常用于牙髓失活的药物是
小儿9个月,面色蜡黄,虚胖。手足颤抖,肝肋下2cm,红细胞2.3×1012/L,血红蛋白90g/L。问首要护理诊断/问题是什么
在事先确定企业资金规模的前提下,吸收一定比例的负债资金,可能产生的结果有()。
根据企业所得税法律制度的规定,下列非居民企业取得的所得中,不能实行源泉扣缴的是()。
一、注意事项1.申论考试是对考生阅读理解能力、综合分析能力、提出和解决问题能力、文字表达能力的测试。2.本试卷由给定资料与作答要求两部分构成。考试时限为150分钟。其中,阅读给定资料参考时限为40分钟,作答参考时限为110分钟。满分100分
Readthefollowingtextanddecidewhichanswerbestfitseachspace.Forquestions26~45,markoneletterA,B,CorDony
In1957adoctorinSingaporenoticedthathospitalsweretreatinganunusualnumberofinfluenza-likecases.Influenzaissomet
Allvisitorsarerequestedto______withtheregulations.
最新回复
(
0
)