以下for語句構(gòu)成的循環(huán)執(zhí)行的次數(shù)是() #include #define N 2 #define M N+l #define NUM(M+1)*M/2 main() {int i,n=0; for(i=1;i<=NUM;i++) {n++;printf(“%d”,n);} printf(“\n”);}
A.5 B.6 C.8 D.9
以下程序的輸出結(jié)果是() #include main() {inti: for(i=l;i<=5;i++) {if(i%2) printf(“*”); else continue; printf(“*”);} printf(“$\n”);I
A.*#*#*#$ B.#*#*#*$ C.*#*#$ D.#*#*$
設(shè)有以下語句: char str1[]= “string”,str2[8],*str3,*str4= “ string”; 則不能對庫函數(shù)strcpy(復(fù)制字符串)的正確調(diào)用的是()
A.strepy(str1,“HELLO1”); B.strepy(str2,“HELL02”); C.strcpy(str3, “HELL03”) D.strcpy(str4, “HELLO4”);