有以下程序: #include <stdio. h> main ( ) { int x[ ] = {1,3,5,7,2,4,6,0} ,i,j,k; for(i =0;i<3;i ++ ) for (j =2;j> = i;j — ) if( x[j + 1 ] > x[j] ) { k = x[j] ;x[j] = x[j + 1 ] ;x[j + 1 ] = k; } for (i =0;i<3;i++) for(j =4;j <7-i;j ++) if(x[j] >x[j+1]){ k=x[j];x[j] =x[j+1];x[j+1] =k;} for (i=0;i<8;i ++) printf("%d" ,x[i]); prinff("/n" );}程序运行后的输出结果是( )。
A.75310246
B.1234567
C.76310462
D.13570246
[单选题]有以下程序: include main( ){ int m =3,n =4,x; x= £m£«£«; x=x£«8£¯£«£«n; prinff(" % d有以下程序: #include <stdio. h > main( ) { int m =3,n =4,x; x= -m++; x=x+8/++n; prinff(" % d /n" ,x); } 程序运行后的输出结果是( )。A.3B.5C.-1D.-2
[单选题]有以下程序 include main() {int a[]={1,2,3,4,5,6,7,8,9,10,11,12,},*p=a£«5,*q=N有以下程序#include <stdio.h>main( ){int a[ ]={1,2,3,4,5,6,7,8,9,10,11,12,},*p=a+5,*q=NULL;*q=*(p+5);printf("%d %d/n",*p,*q);}程序运行后的输出结果是A.运行后报错B.6 6C.6 11D.5 10
[单选题]有以下程序#include <stdio.h>main() { int x=1, y=2, z=3; if(x>y) if(y<z) printf("%d", ++z); else printf("%d", ++y); printf("%d/n", x++);}程序的运行结果是A.331 B.41 C.2 D.1
[单选题]有以下程序:include main( ){int a[3][2]={0} ,( *ptr)[2],i,j;for(i=0;i<2;i£«£«) {ptr有以下程序: #include <stdio.h> main( ) { int a[3][2]={0} ,( *ptr)[2],i,j; for(i=0;i<2;i++) {ptr=a+i; scanf("%d",ptr); ptr++;} for(i =0;i<3;i ++ ) } for(j =0;j<2;j ++ ) prinff(
[单选题]有以下程序:include main( ){int a[ ] = { 1,2,3,4,5,6,7,8,9,0} , * p;for(p =a;p有以下程序:#include <stdio. h>main( ){ int a[ ] = { 1,2,3,4,5,6,7,8,9,0} , * p; for(p =a;p<a+10;p++) printf("%d," , *p); }程序运行后的输出结果是( )。A.1,2,3,4,5,6,7,8,9,0,B.2,3,4,5,6,7,8,9,10,1
[单选题]有以下程序#include <stdio.h>main(){ int x=1,y=0,a=0,b=0;switch(x){ case 1:switch(y){ case 0: a++; break;case 1: b++; break;}case 2: a++; b++; break;case 3: a++; b++;}printf("a=%d, b=%d/n",a,b);}程序的运行结果是A.)a=1 , b=0B.)a=2, b=2C.)a=1, b=1D.)a=2, b=1
[单选题]有以下程序#include <stdio.h>main(){ int x=1,y=2,z=3;if(x>y)if(y<z) printf("%d",++z);else printf("%d",++y);printf("%d/n",x++);}程序的运行结果是A.)331B.)41C.)2D.)1
[单选题]有以下程序:include include main(int argc,char *argv[]){ int i,len=0;f有以下程序: #include <stdio.h> #include <string.h> main(int argc,char *argv[]) { int i,len=0; for(i=1;i<argc;i+=2)len+=strlen(argv[i]); prinff("%d/n",len); } 此程序经编译链接后生成的可执行文件是ex.exe,若运行时输入
[单选题]有下列程序: include main() {int a[]={1,2,3,4},y,*p=&a[3]; ££有下列程序: #include <stdio.h> main() {int a[]={1,2,3,4},y,*p=&a[3]; --p; y=*p; printf("y=%d/n",y); } 程序的运行结果是( )。A.y=0B.y=1C.y=2D.y=3
[单选题]有下列程序: include main() {int a[]={1,2,3,4},y,*p=&a[3]; ££有下列程序: #include <stdio.h> main() {int a[]={1,2,3,4},y,*p=&a[3]; --p; y=*p; printf("y=%d/n",y); } 程序的运行结果是( )。A.y=0B.y=1C.y=2D.y=3