請(qǐng)讀程序: main() {inti,k,a[10],p[3]: k=5; for(i=0;i<10;i)a[i]=i; for(i=0;i<3;i)p[i]=a[i*(i1)]; for(i=0;i<3;i)k=p[i]*2; printf(“%d、n”,k); } 則上面程序的輸出結(jié)果是()
A.20 B.21 C.22 D.23
函數(shù)AAA(s,t) char*s,*t; {while(*t++); t--; while(*t++=*s++); } 的功能是:()。
A.求串的長(zhǎng)度 B.比較兩個(gè)串的大小 C.將串s復(fù)制到串t中 D.將串s連接到串t中
下列程序執(zhí)行后的輸出結(jié)果是() voidfunc1(inti); voidfunc2(inti); charst[]="hello,friend!"; voidfunc1(inti) {printf("%c",st[i]); if(i<3){i+=2;func2(i);} } voidfunc2(inti) {printf("%c",st[i]); if(i<3){i+=2;func1(i);} } main() {inti=0;func1(i);printf("\n");}
A.hello B.hel C.hlo D.hlm