若a,b均是整型变量,正确的switch语句是( )。 A: switch(a){case 1.0: printf(“i\n”);case 2: printf(“you\n”); ”);} B: switch(a){case b: printf(“i\n”);case 1: printf(“you\n”);} C: switch(a+b){case 1: printf(“i\n”);case 2*a: printf(“you\n”);} D: switch(a+b){case 1: printf(“i\n”);case 2: printf(“you\n”);}
若a,b均是整型变量,正确的switch语句是( )。 A: switch(a){case 1.0: printf(“i\n”);case 2: printf(“you\n”); ”);} B: switch(a){case b: printf(“i\n”);case 1: printf(“you\n”);} C: switch(a+b){case 1: printf(“i\n”);case 2*a: printf(“you\n”);} D: switch(a+b){case 1: printf(“i\n”);case 2: printf(“you\n”);}
main(){char arr[2][4];strcpy(arr,”you...printf(“%s”,arr); }
main(){char arr[2][4];strcpy(arr,”you...printf(“%s”,arr); }
有语句:printf(" i love you\n"); ,则在屏幕上会输出什么内容?
有语句:printf(" i love you\n"); ,则在屏幕上会输出什么内容?
设定义char a[20] ,要想使数组a得到字符串″how are you″应使用( ) A: printf(″%s″,a); B: gets(a); C: a=gets(); D: printf(″%c″,a);
设定义char a[20] ,要想使数组a得到字符串″how are you″应使用( ) A: printf(″%s″,a); B: gets(a); C: a=gets(); D: printf(″%c″,a);
【单选题】如果输出语句:printf(“I am “student" you is teacher "). 显示内容? A. I am “student" you is teacher B. I am student you is teacher C. I am student you is teacher D. I am “student" you is teacher
【单选题】如果输出语句:printf(“I am “student" you is teacher "). 显示内容? A. I am “student" you is teacher B. I am student you is teacher C. I am student you is teacher D. I am “student" you is teacher
下列程序段的输出结果是( )。void main( ){char a[ ]="welcome you!";a[4]='\0';printf("%s\n",a);} A: welc B: welcome C: welcome you D: welcome you!
下列程序段的输出结果是( )。void main( ){char a[ ]="welcome you!";a[4]='\0';printf("%s\n",a);} A: welc B: welcome C: welcome you D: welcome you!
main() {chararr[2][4]; strcpy(arr,”you”);strcpy(arr[1],”me”); arr[0][3]=’&’; printf(“%s”,arr);}
main() {chararr[2][4]; strcpy(arr,”you”);strcpy(arr[1],”me”); arr[0][3]=’&’; printf(“%s”,arr);}
int x[5]; You can use the array name to output all elements of a numeric array, e.g. printf("%s",x);
int x[5]; You can use the array name to output all elements of a numeric array, e.g. printf("%s",x);
( )。下列程序段的输出结果是()。main( ){ char b[ ]="Hello,you"; b[5]='\0'; printf("%s\n",b);} A: Hello B: Hello,you C: Hello0you D: Hello,
( )。下列程序段的输出结果是()。main( ){ char b[ ]="Hello,you"; b[5]='\0'; printf("%s\n",b);} A: Hello B: Hello,you C: Hello0you D: Hello,
下列程序段的输出结果是____。main(){ char b[]="Hello,you";b[5]=0;printf("%s\n",b);}
下列程序段的输出结果是____。main(){ char b[]="Hello,you";b[5]=0;printf("%s\n",b);}