A、have gradually being exhausted
B、are gradually exhausted
C、has been gradually exhausted
D、are being gradually exhausted
第1题:
下列字符型常量Hello,world!表示方法中,错误的是______。
A.[Hello,world!]
B.'Hello,wOrld!'
C.Hello,world!,
D.{Hello,world!}
第2题:
若串s=“World”,其子串的个数是()。
A.5
B.6
C.15
D.16
第3题:
2、若串s1=“hello”,s2=“ world”,那么执行 strlen(strcat(s1,s2))后的结果是()。
A.0
B.10
C.11
D.不确定
第4题:
设有定义:Strings=“World”;,下列语句错误的是( )。
A、intm=s.indexOf(‘r’);
B、charc=s.charAt(0);
C、intn=s.length();
D、Stringstr=s.append(‘2’);
第5题:
35、以下程序的运行结果是___________。 void print(char *s){ printf("%s", s); } int main(){ char *p, *q; char str[]="Hello, World\n"; q=p=str; p++; printf(q); printf(p); return 0; }
A.H e
B.Hello, World ello, World
C.Hello, World Hello, World
D.ello, World llo, World
第6题:
请编写函数cpy(char s1[ ], char s2[ ]),其功能是实现字符串的复制(不能使用库函数strcpy), 即把字符数组s2中的字符串复制到字符数组s1中。 例如main函数中输入"hello",“world”,则最后输出``world” ;