请读程序:include<stdio.h>main(){ int a;float b,c; scanf("%2d%3t%4f",&a,&b,&c)
请读程序: include<stdio.h> main() { int a;float b,c; scanf("%2d%3t%4f",&a,&b,&c); printf("\na=%d,b=%f,c=%f\n",a,b,c); } 若运行时从键盘上输入(图片),则上面程序的输出结果是______。
A.a=98,b=765,c=4321
B.a=10,b=432,c=8765
C.a=98,b=765.000000,c=4321.000000
D.a=98,b=765.0,c=4321.0
时间:2023-10-07 12:54:07
-
请读程序: #include<stdio.h> void fun(float *pl, float *p2, float *s) { s=( float * )calloc( 1, sizeof(float)); *s=*p1+ *(p2++); } main() { float a[2]={1.1, 2.2}, b[2]={10.0, 20.0}, *s=a; fun(a, b, s) printf(""%f\n"",*s); } 上面程序的输出结果是()
A . 11.100000
B . 12.100000
C . 21.100000
D . 1.100000
-
下面程序的运行结果是______。 #include < stdio.h > #include < string.h > main() { char a[7]=\abcdef\,b[4]=\ABC
-
如果在下面程序运行时输入123456,程序的运行结果是【 】。 include<stdio.h>int main(); }
A.12,56
B.12,34
C.34,56
D.123456
-
以下程序的运行结果是【 】。 include<stdio.h> main() { int fun(); fun();} fun (
以下程序的运行结果是【 】。 include<stdio.h> main() { int fun(); fun();} fun () { static int a[3]={0,1,2}; int i; for(i=0;i<3;i++)a[i]+=a[i]; for(i=0;i<3;i++)printf("%d,",a[i]); printf("\n");}
-
下述程序执行的输出结果是()。 include<stdio.h> main() {char a[2][4]; , strcpy(
下述程序执行的输出结果是()。 include<stdio.h> main() {char a[2][4]; , strcpy(a。"are");strcpy(a[1],"you"); a[o][3]=&; printf("%s\n",a); }
A.are&you
B.you
C.are
D.&
-
有以下程序: include<stdio.h> main() {printf("%d\n",NULL)); 程序运行后的输出结果是()。
A.0
B.1
C.-1
D.NULL没定义,出错
-
有以下程序: include<stdio.h> main { char s[]="rstuv"; printf("%c\n",*s+2); }
有以下程序: include<stdio.h> main { char s[]="rstuv"; printf("%c\n",*s+2); } 程序运行后的输出结果是()。
A.tuv
B.字符t的ASCIl码值
C.t
D.出错
-
请读程序:include<stdio.h>int a[]={2,4,6,8,};main(){int i; int *p=a; for(i=0;i<4;i++)a[i]
请读程序: include <stdio.h> int a[]={2,4,6,8,}; main() { int i; int *p=a; for(i=0;i<4;i++) a[i]=*p++; priatf("%d\n",a[2]); } 上面程序的输出结果是()。
A.6
B.8
C.4
D.2
-
以下四个程序中,完全正确的是()。A.include <stdio.h> main(); { /* programmlng* / printf("p
以下四个程序中,完全正确的是()。
A.include <stdio.h> main(); { /* programmlng* / 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" ); }
-
有以下程序: include<stdio.h> main() { int i,j,m=55; for(i=
有以下程序: include<stdio.h> main() { int i,j,m=55; for(i=1;i<=3;i++) for(j=3;j<=i;j++)m=m%j; printf(“9/6d\n”,m); } 程序的运行结果是()。
A.0
B.1
C.2
D.3
-
请读程序 include<stdio.h> func(int a, intb) {int c; c=a+b; return c; } main() {int x=6,y=7,z=8,r; r=func((x--,y,x+y),z--); printf("%d&92;n",r); } 上面程序的输出结果是( )。
A.11
B.20
C.21
D.31
-
以下程序的功能是计算:s=1+12+123+1234+12345。请填空。 include<stdio.h>int main()
-
include<stdio.h>main(); } 程序运行后的输出结果是
A.0,0
B.0,-1
C.-1,-1
D.结果不确定
-
有以下程序 include<stdio.h>void main()
A.10 9 8
B.9 8 7
C.10 9 8 7
D.9 8 7 6
-
有下列程序 include<stdio.h>main()); } 程序执行时若输入: welcome you to beijing<回车>,则输出结果是
A.w,you,jing,o
B.welcome,you,jing,to
C.w,you,eeijing,u
D.w,xelcome,eeijing,u
-
请读程序: include<stdio.h> main() { int a=5,b=7,c=9; pintf("%d,%d,"a,b,C) ; printf("%d,%d",a,D) ; } 上面程序的输出结果是_______。
A.5,7,9,5,7
B.5,7,5,7
C.5,7,不定7,9
D.5,7,5,7,不定
-
下列程序的输出结果是______。 include<stdio.h> main(); }
-
请读程序: include<stdio.h> main() { int a,b; for(a=1,b=1;a<=100:a++){ if(b>=20)break; if(b%3=1”{b+=3;continue;} b=5; } printf("%d\n",A) ; } 上面程序的输出结果是_______。
A.7
B.8
C.9
D.10
-
请读程序:include<stdio.h>defineSUB(X,Y)(X)*Ymain(){int a=3,b=4; printf("%d\n",SUB(a++,b+
请读程序: include <stdio.h> define SUB(X,Y) (X)*Y main() { int a=3,b=4; printf("%d\n",SUB(a++,b++)); } 上面程序的输出结果是()。
A.12
B.15
C.16
D.20
-
有以下程序includ<stdio.h>main(){printf("%"NUL);}程序运行后的输出结果是()
A.1
B.变量无定义,输出不确定
C.-1
D.0
-
请读程序:include<stdio.h>f(int b[],int n){int i,r;r=1;for(i=0;i<=n;i++)r=r*b[i];return r;}main(){int x,a[]={2,3,4,5,6,7,8,9};x=f(a,3);print
A.720
B.120
C.24
D.6
-
以下程序的输出为()include<stdio.h>void main(){inty=5;while(y--);printf("y=%d\n",y);}</stdio.h>
A.y=0
B.无限循环,无结果输出
C.y=1
D.y=-1
-
有以下程序: include<stdio.h> main() } int y=9; for(y>0;
有以下程序: include<stdio.h> main() } int y=9; for(y>0;y--) if(y%3==0)printf(“%d”,--y); } 程序的运行结果是()。
A.741
B.963
C.852
D.875421
-
若输入I have a test.,则以下程序的运行结果为【 】。 include<stdio.h> main(); }