【单选题】【消耗次数: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