有下列程序: 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.4 3 3 2D.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 4

B.2 3 4 4

C.4 3 3 2

D.1 1 2 3


相关考题:

下列程序的输出结果是()。includevoid fun(int*a,int*B){int *k;k=a;a=b;b=k;}main(){i 下列程序的输出结果是( )。 #include<stdio.h> void fun(int*a,int*B){ int *k; k=a;a=b;b=k;} main() { int a=1,b=2,*x=a,*y=b; fun(x,y); printf("%d%d",a,B); }A.2 1B.1 2C.编译出错D.0 0

下列程序的输出结果是()。includeint b=2;int func(int*A){b+=*a;return b;}main(){int 下列程序的输出结果是( )。 #include<stdio.h> int b=2; int func(int*A){ b+=*a;return b;} main() { int a=1,t=2; t+=func(a); printf("%d\n",t); }A.4B.5C.6D.8

阅读下面程序,则程序执行后的结果为#include "stdio.h"main(){int a=4,b=6,c=7;double d,fun(int,int,int);d=fun(a,b,c);printf("%lf\n",d);}double fun(int a,int b,int c){double s;s=a%b*c;return s;}A.27B.27.000000C.28D.28.000000

以下程序的输出结果是()includeincludemain(){char str[12]={'s','t','r', 以下程序的输出结果是( ) #include<stdio.h> #include<string.h> main() {char str[12]={'s','t','r','i','n','g'}; printf("%d\n",strlen(str)); }A.6B.7C.11D.12

有以下程序:includeint a=2;int f(int *a){return (*a) ++;}main(){ int s=0;{ int a= 有以下程序: #include <stdio.h> int a=2; int f(int *a) { return (*a) ++;} main() { int s=0; { int a=5; s+=f(a); } s+=f(a); printf("%d\n",s) } 执行后的输出结果是( )。A.10B.9C.7D.8

以下程序的输出结果是()。includeinclude main(){char str[12]={'s','t','r 以下程序的输出结果是( )。 #include <stdio.h> #include <string.h> main() { char str[12]={'s','t','r','i','n','g'}; printf("%d\n",strlen(str) ); }A.6B.7C.11D.12

有以下程序 include int fun(int (*s)[4],int n,int k) {int m,i; 有以下程序 #include <stdio.h> int fun(int (*s)[4],int n,int k) {int m,i; m=s[0][kl; for(i=1;i<n;i++) if(s[i][k]>m) m=s[i][k]; return m; } main() { int a[4][4]={{1,2,3,4},{11,12,13,14}, {21,22,23,24}, {31,32,33,34}}; printf("%d\n",fun(a,4,0)); } 程序的运行结果是______。A.4B.34C.31D.32

下列4个程序中,完全正确的是()。A.include main(); (/*programming*/ printf("programm 下列4个程序中,完全正确的是( )。A.#include<stdio.h> main(); (/*programming*/ printf("programming!\n");}B.# include<stdio.h> main() {/*/programming/*/ printf("programming!\n");}C.#include<stdio.h> main() {/*/programming*/*/ printf("programming!\n");)D.include<stdio.h> main() {/*programming*/ printf("programming!\n");}

有以下程序:includevoid fun(int* s,int* * d){* *d=*(s+2);}main(){ inta[]={1,2,3, 有以下程序: #include <stdlib.h> void fun(int * s,int * * d) { * *d=*(s+2); } main() { int a[]={1,2,3,4,5},*b; b=(int *)malloc(sizeof(int)); fun(a,B) ; printf("%d\n",*b+1); } 程序的输出结果是( )A.2B.3C.4D.5