下面程序的运行结果是:()。main(){char s1[20]="Good!";char s2[15]="AB";printf("%d",strlen(strcpy(s1,s2)));}
查看答案
下面程序的运行结果是:()。main(){int x[]={22,33,44,55,66,77,88};int k,y=0;for (k=1;k<=4;k++)if (x[k]%2==1)y++;printf("%d",y);}
A. 0
B. 1
C. 2
D. 3
下面程序的运行结果是:()。main(){int a[3][3]={{1,2},{3,4},{5,6}},i,j,s=0;for(i=1;i<3;i++)for(j=0;j
A. 14
B. 19
C. 20
D. 21
下面程序的运行结果是:()。main(){char s[]="ab1c2d4e";int i;i=0;while(s[i]!='\0'){if(s[i]>='a'&&s[i]<='z')printf("%c",s[i]);i++;}}
A. ab
B. ab1c2d4e
C. abcde
D. a
不能把字符串“Hello!”赋给数组b的语句是:()
A. charb[10]={'H','e','l','l','o','!','\0'};
B. charb[10];b="Hello!";
C. charb[10];strcpy(b,"Hello!");
D. charb[10]="Hello!";