以下程序的輸出結果是() #include main() {inti: for(i=l;i<=5;i++) {if(i%2) printf(“*”); else continue; printf(“*”);} printf(“$\n”);I
A.*#*#*#$ B.#*#*#*$ C.*#*#$ D.#*#*$
設有以下語句: char str1[]= “string”,str2[8],*str3,*str4= “ string”; 則不能對庫函數(shù)strcpy(復制字符串)的正確調用的是()
A.strepy(str1,“HELLO1”); B.strepy(str2,“HELL02”); C.strcpy(str3, “HELL03”) D.strcpy(str4, “HELLO4”);
以下程序的輸出結果是() #include union pw {int i;char ch[2];}a; main( ) {a.ch[0]=13;a.ch[1]=0;printf(”%d\n”,a.i);} (注意:ch[0]在低字節(jié),ch[1]在高字節(jié)。)
A.13 B.14 C.208 D.209