答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【单选题】【消耗次数:1】
当类中一个字符指针指向具有n个字节的存储空间时,它所存储字符串的最大长度是( )
①
n
②
n-1
③
n+1
④
n-2
参考答案:
复制
纠错
相关题目
【单选题】
当类中一个字符指针指向具有n个字节的存储空间时,它所存储字符串的最大长度是( )
①
n
②
n-1
③
n+1
④
n-2
查看完整题目与答案
【单选题】
一个长度为n的字符串,需要至少占用多少字节的存储空间?
①
n-1
②
n
③
n+1
④
2n
查看完整题目与答案
【单选题】
一个二维字符数组a[M][N]能够至多存储( )个字符串。
①
M
②
N
③
M-1
④
N-1
查看完整题目与答案
【单选题】
一个二维字符数组a[M][N]能够至多存储( )个字符串。
①
M
②
N
③
M-1
④
N-1
查看完整题目与答案
【单选题】
对于一个长度为n的字符串,需要占用( )个字节。
①
n
②
n-1
③
n+1
④
n+2
查看完整题目与答案
【单选题】
对于一个长度为n的字符串,需要占用( )个字节。
①
n
②
n-1
③
n+1
④
n+2
查看完整题目与答案
【单选题】
在长度为n的字符串S的第i个位置插入另外一个字符串,i的合法值应该是( )。
①
i>0
②
i≤n
③
1≤i≤n
④
1≤i≤n+1
查看完整题目与答案
【单选题】
字符串It\s\40an\40apple.\n中包含有( )个字符。
①
21
②
18
③
16
④
15
查看完整题目与答案
【单选题】
字符串It\s\40an\40apple.\n中包含有( )个字符。
①
21
②
18
③
16
④
15
查看完整题目与答案
【单选题】
从一个字符串中的第3个字符开始,获取5个字符,应使用()。
①
Len函数
②
.Mid函数
③
Left函数
④
Right函数
查看完整题目与答案
随机题目
【单选题】
He offered to ___ her a hand as the suitcase was too heavy for her to carry.
①
lend
②
help
③
grant
④
loan
查看完整题目与答案
【单选题】
Our new house is very ____ for me as I can get to the office in five minutes.
①
adaptable
②
convenient
③
available
④
comfortable
查看完整题目与答案
【单选题】
Have you any oranges and apples?____________
①
The oranges are very cheap.
②
You like apples, dont you?
③
Of course, we have some fruits.
④
Yes, madam, on the second shelf over there.
查看完整题目与答案
【单选题】
the old couple decided to ____ a boy and a girl though they had three of their own.
①
adapt
②
bring
③
receive
④
adopt
查看完整题目与答案
【单选题】
I will count three hundred and not one of you ______ move a bit.
①
is to
②
are to
③
is
④
are
查看完整题目与答案
【单选题】
After a lot of difficulties, he _______ to open the door.
①
managed
②
succeeded
③
accomplished
④
tried
查看完整题目与答案
【单选题】
None of us expected the chairman to _____ at the party. We thought he was still in hospital.
①
turn in
②
turn over
③
turn up
④
turn down
查看完整题目与答案
【单选题】
Thanks, you saved my daughter’s life!____________
①
Oh, I’m afraid I didn’t do well enough.
②
No problem.
③
I’m glad I could help.
④
It’s not necessary for you to say so.
查看完整题目与答案
【单选题】
All things ____, the planned trip will have to be called off.
①
considered
②
be considered
③
considering
④
having considered
查看完整题目与答案
【单选题】
It is better for you to be _____ about its consequences before you take any action.
①
positive
②
absolute
③
critical
④
favorite
查看完整题目与答案