单项选择题
以下程序的输出结果是() #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= “ s...
设有以下语句: char str1[]= “string”,str2[8],*str3,*str4= “ string”; 则不能对库函数strcpy(复制字符串)的正确调用的是()
A.strepy(str1,“HELLO1”); B.strepy(str2,“HELL02”); C.strcpy(str3, “HELL03”) D.strcpy(str4, “HELLO4”);
以下程序的输出结果是() #include union pw {int i;char c...
以下程序的输出结果是() #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]在低字节,ch[1]在高字节。)
A.13 B.14 C.208 D.209
设有以下语句(其中0≤i<10),则不能对a数组元素的正确引用是() int a[10]={0,l,...
设有以下语句(其中0≤i<10),则不能对a数组元素的正确引用是() int a[10]={0,l,2,3,4,5,6,7,8,9},*p=a;
A.a[p-a] B.*(&a[i]) C.p[i] D.*(*(a+i))