题目内容

下列选项中,能够满足“若字符串s1等于字符串s2,则执行ST"要求的是

A. if (strcmp(s2,s1)==0) ST;
B. if(s1-s2) ST;
C. if(s1==s2) ST
D. if (strcpy(s1,s2)==1) ST;

查看答案
更多问题

有以下程序:#include"stdio.h"voidmain(){charp[20]={'a','b','c','d'},q[]="abc",r[]="abcde";strcpy(p+strlen(q),r);strcat(p,q);printf("%d%d\n",sizeof(p),strlen(p));}程序运行后的输出结果是()

A. 209
B. 99
C. 2011
D. 1111

#include main(){ int a[3][3]={{1,2,3},{4,5,6},{7,8,9}};int b[3]={0},i;for(i=0;i<3;i++) b[i]=a[i][2]+a[2][i];for(i=0;i<3;i++)printf("%d ",b[i]);printf("\n");}程序运行后的输出结果是。

We need to replace the washing machine and some other household _________________.

A. machinary
B. devices
C. tools
D. appliances

It was amazing how my mother ____________ with bringing up eight children.

A. coped
B. managed
C. dealt
D. succeeded

答案查题题库