有下列程序: #include <stdio.h> main() { int s[12]={1,2,3,4,4,3,2,1,1,1,2,3},c[5]={0},i; for(i=0;i<12;i++)c[s[i]]++; for(i=1;i<5;i++)printf("%d",c[i]); printf("/n"); 程序的运行结果是( )。
A.1 2 3 4
B.2 3 4 4
C.4 3 3 2
D.1 1 2 3
[单选题]有下列程序: include main() { int s[12]={1,2,3,4,4,3,2,1,1,有下列程序: #include <stdio.h> main() { int s[12]={1,2,3,4,4,3,2,1,1,1,2,3},c[5]={0},i; for(i=0;i<12;i++)c[s[i]]++; for(i=1;i<5;i++)printf("%d",c[i]); printf("/n"); 程序的运行结果是( )。A.1 2 3 4B.2 3 4 4C.
[单选题]有以下程序: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 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
[单选题]有以下程序#include <stdio.h>main(){ int s[12]={1,2,3,4,4,3,2,1,1,1,2,3},c[5]={0},i;for(i=0;i<12;i++) c[s[i]]++;for(i=1;i<5;i++) printf("%d",c[i]);printf("/n");}程序的运行结果是A.)1 2 3 4B.)2 3 4 4C.)4 3 3 2D. )1 1 2 3
[单选题]有以下程序 include main() { int a=1, b=2, c=3, x; x=(a^b)&c; pri有以下程序 #include <stdio.h> main() { int a=1, b=2, c=3, x; x=(a^b)&c; printf("%d/n",x); } 程序的运行结果是A.0B.1C.2D.3
[单选题]有以下程序 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 main( ){ int m =12,n=34;printf( "% d% d" ,m£«£« , £«£«n);printf(有以下程序: #include <stdio.h>main( ){ int m =12,n=34; printf( "% d% d" ,m++ , ++n); printf("% d% d /n" ,n ++ , ++m); }程序运行后的输出结果是( )。A.12353514B.12353513C.12343514D.1234
[单选题]有下列程序: include main() {int a=6,b=7,m=1; switch(a%2) {case 0:m£«£«;break; cas有下列程序:#include<stdio.h>main(){ int a=6,b=7,m=1;switch(a%2){ case 0:m++;break;case 1:m++;switch(b%2){ defaut:m++;case0:m++;break;}}printf("%d/n",m);}程序运行后的输出结果是( )。A.1B.2C.3
[单选题]有以下程序: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(