-- Why don't you stay a little longer?
-- _____
A. I wish I could, but it's already late.
B. I don't want to.
C. I couldn't.
D. Thank you very much.
第1题:
以下不能将S所指字符串正确复制到t所指存储空间的是( )。
A.while(*t=*s){t++;s++;)
B.for(i=0;t[i]=s[i];i++);
C.do{*t++=*s++;)while(*s);
D.for(i=0,j=o;t[i++]=s[j++];);
第2题:
-- Ann is in hospital.
-- Oh, really? I __ know. I __ go and visit her.
A. didn’t; am going to B. don’t; would
C. don’t; will D. didn't; will
第3题:
输入hello↙,写出下面程序的运行结果。 #include <stdio.h> #include <string.h> int main() { char s[80],t[200]; int i,sl ; gets(s); sl = strlen(s); for(i=0 ;i<sl ;i++) t[i]=s[sl-i-1] ; for (i=0; i<sl; i++) t[sl+i] = s[i]; t[sl+i]='0' ; puts(t); return 0; }
第4题:
以下不能将s所指字符串正确复制到t所指存储空间的是( )。
A.while(*t=*s){t++;s++;}
B.for(i=0;t[i]=s[i];i++);
C.do{*t++:*s++;}while(*s);
D.for(i=0,j=0;t[i++]=s[j++];);
第5题:
第6题:
下面程序的功能是计算1-3+5-7+ …… -99+101的值。 ① main() { int i,t=1,s=0; for(i=1;i<=101;i+=2) { ① ; s=s+t; ② ; } printf(”%dn”,s}; }
A.t = i * t
B.t = i * (t+1)
C.t = (i+1)* t
D.t = (i-1) * t