答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【判断题】【消耗次数:1】
字符处理函数strcpy(s1,s2)的功能是把字符串1接到字符串2的后面。
①
正确
②
错误
参考答案:
复制
纠错
相关题目
【单选题】
若REPLACE(S,S1,S2)表示用字符串S2替换字符串S中的子串S1的操作,则对于S=“Beijing&Nanjing”,S1=“Beijing”,S2=“Shanghai”,REPLACE(S,S1,S2)=( )。
①
“Nanjing&Shanghai”
②
“Nanjing&Nanjing”
③
“ShanghaiNanjing”
④
“Shanghai&Nanjing”
查看完整题目与答案
【单选题】
设有以下字符串定义,则数组s1和s2( )。char s1[]={ S ,t, r ,i,n, gchar s2[]= String
①
长度相同,但内容不同
②
长度相同,内容也相同
③
长度不同,但内容相同
④
长度不同,内容也不同
查看完整题目与答案
【判断题】
函数strcpy用来求字符串的长度。
①
正确
②
错误
查看完整题目与答案
【单选题】
设有两个串S1和S2,则StrCompare(S1,S2)运算称做( )。
①
串连接
②
模式匹配
③
求子串
④
串比较
查看完整题目与答案
【单选题】
设有两个串S1和S2,求串S2在S1中首次出现位置的运算称作( )。
①
连接
②
求子串
③
模式匹配
④
判断子串
查看完整题目与答案
【单选题】
字符串输出函数是
①
getchar()
②
putchar()
③
getchars()
④
putchars()
查看完整题目与答案
【判断题】
C语言中没有字符串类型,也没有字符串变量,字符串是存放在字符型数组中的。
①
正确
②
错误
查看完整题目与答案
【判断题】
字符串"AB"与"ab"是两个相等的字符串。
①
正确
②
错误
查看完整题目与答案
【单选题】
下列关于常用的字符串函数及用法说法错误的是( )
①
Len(string),返回字符串string的长度
②
Trim(string),将字符串string前后的空格去掉
③
Split(strl,符号),根据符号将strl拆分成一维数组
④
Left(str,len),从右边取len个字符
查看完整题目与答案
【单选题】
下列关于字符串的描述中,错误的是()。
①
一维字符数组可以存放一个字符串
②
二维字符数组可以存放多个字符串
③
可以使用一个字符串给二维字符数组赋值
④
可以用一个字符串给二维字符数组初始化
查看完整题目与答案
随机题目
【单选题】
13. Where is my pen? I ______ it.
①
might lose
②
would have lost
③
should have lost
④
must have lost
查看完整题目与答案
【单选题】
14. I didn’thear the phone. I ______ asleep.
①
must be
②
must have been
③
should be
④
should have been
查看完整题目与答案
【单选题】
10. He _______ accomplish the task on time.
①
did
②
has
③
is
④
do
查看完整题目与答案
【单选题】
11. I thought you _____ like something to read, so I have bought you some books.
①
may
②
might
③
could
④
must
查看完整题目与答案
【单选题】
3. Few of them hurt themselves in the accident last night, ____ ?
①
but
②
and
③
though
④
so
查看完整题目与答案
【单选题】
9.The old farmer, ____the badly injured and burnt soldier, came out of the burning farmhouse, calling continuously for help.
①
supporting
②
having supported
③
being supported by
④
being supported
查看完整题目与答案
【单选题】
5.____the front door____, he had to enter the room through the back door.
①
Seen, painted
②
Seeing, painted
③
Being seen, being painted
④
Seeing, being painted
查看完整题目与答案
【单选题】
16. As I will be away for at least a year, I’d appreciate____ from you now and then so that I can know how everyone is getting along.
①
having heard
②
to hear
③
hearing
④
beingheard
查看完整题目与答案
【单选题】
7.He looked around and caught a man____his hand into the pocket of a passenger.
①
put
②
to be put
③
to put
④
putting
查看完整题目与答案
【单选题】
14.The thief fell to the ground,his left foot ____and blood ____down from his mouth.
①
breaking; running
②
broken; running
③
breaking; run
④
broken; run
查看完整题目与答案