若执行下列程序时输入: book↙ books↙则结果是( ) C#includevoidmain( ){char a1[80],a2[80],*s1=a1,*s2=a2;gets(s1);gets(s2);if(!strcmp(s1,s2)) printf(“*”);else printf(“#”);printf(“%d\n”,strlen(strcat(s1,s2)));}
A. *8
B.
C. 6
D. C.
E. 9
F. *9
以下程序的输出结果是( ) Dint a[3][3]={{1},{2},{3}};int b[3][3]={1,2,3};void main( ){ printf(“%d\n”,a[1][0]+b[0][0]); }
A. 0
B. 1
C. 2
D. 3
#include main(){ char ch[]="abc",x[3][4]; int i;for(i=0;i<3;i++) strcpy(x[i],ch);for(i=0;i<3;i++) printf("%s",&x[i][i]);printf("\n");}
以下程序的输出结果是_____________#include int f(int x){static y=1;y++;x+=y;return x; }void main( ){int k;k=f(3);printf(“%d,%d\n”,k,f(k));}