12、下面程序段执行后的输出结果是()。 int a; char c=10; float f=100.0; double x; a=f/=c*=(x=6.5); printf("%d└┘%d└┘%3.1f└┘%3.1f",a,c,f,x);A.1└┘65└┘1└┘6.5B.1└┘65└┘1.5└┘6.5C.1└┘65└┘1.0└┘6.5D.2└┘65└┘1.5└┘6.5

12、下面程序段执行后的输出结果是()。 int a; char c=10; float f=100.0; double x; a=f/=c*=(x=6.5); printf("%d└┘%d└┘%3.1f└┘%3.1f",a,c,f,x);

A.1└┘65└┘1└┘6.5

B.1└┘65└┘1.5└┘6.5

C.1└┘65└┘1.0└┘6.5

D.2└┘65└┘1.5└┘6.5


参考答案和解析
15 0 4

相关考题:

设有定义: float x=123.4567; ,则执行以下语句后的输出结果是 【 6 】 。printf("%f\n",(int)(x*100+0.5)/100.0);

(15)程序段:int x=12; double y=3.141593; printf(“%d%8.6f”,x,y);的输出结果是A)123.141593 B)12 3.141593 C)12,3.141593 D)123.141593

下面程序段的输出结果是()。includemain(){float x=1.236547;printf("%f\n",(int)(x*10 下面程序段的输出结果是( )。 #include<stdio.h> main() {float x=1.236547; printf("%f\n",(int)(x*1000+0.5)/(float)1000); }A.1.237000B.输出格式说明与输出项不匹配,输出无定值C.1.236000D.1.24

下列程序的输出结果是()。 include define F(x)2.84+x define w(y)printf("%d",(int) 下列程序的输出结果是( )。#include<stdio.h>#define F(x)2.84+x#define w(y)printf("%d",(int)(y))#define P(y)w(y)putchar('\n')main(){ int x=2;P(F(5) *x);}A.12B.13C.14D.16

有以下程序:define f(x)x*xmain(){ int i;i=f(4+4)/f(2+2);printf("% d\n", i);}执行后的输出结果是【 】。

有以下程序int fa(int x){return x*x;}int fb(int x){return x*x*x;}int f(int(*fl)(),int(*f2)(),int x}{return f2(x)-f1(x);}main(){int i;i=f(fa,fb,2);printf("%d\n",i);}程序运行后,输出结果是【 】。

以下程序运行后的输出结果是( )。main(){char c;int n=100;loat f=10;double x;x=f*=n/=(c=50);printf("%d%f\n",n,x);}

有以下程序void f( int y, int *x){ y=y+*x; *X=*X+y; }main(){ int x=2,y=4;f(y,x);printf("%d %d\n",x,y);}执行后输出结果是______。

有以下程序: main() { inta;char c=10; float f=100.0;double x; a=f/=c*=(x=6.5); printf("%d %d %3.1f %3.1f\n",a,c,f,x); } 程序运行后的输出结果是 ______。A.1 65 1 6.5B.1 65 1.5 6.5C.1 65 1.0 6.5D.2 65 1.5 6.5

有以下程序main( ){ int a; char c=10;float f=100.0; double x;a=f/=c*=(x=6.5);printf("%d %d %3.1f %3.1f\n",a,c,f,x);}程序运行后的输出结果是A.1 65 1 6.5B.1 65 1.5 6.5C.1 65 1.0 6.5D.2 65 1.5 6.5

设有定义:float x=123.4567;,则执行以下语句后的输出结果是[ ]。printf("%f\n"(int)(x*100+0.5)/100.1;

有以下程序: main() { int a; char c=10; float f=100.0; double x; a=f/=c*=(x=6.5); printf("%d %d %3.lf %3.lf\n",a,c,f,x); } 程序运行后的输出结果是A.1 65 1 6.5B.1 65 1.5 6.5C.1 65 1.0 6.5D.2 65 1.5 6.5

下列程序的输出结果是()。includedefine F(x)2.84+xdefine w(y)printf("%d",(int)(y) 下列程序的输出结果是( )。 #include<stdio.h> #define F(x)2.84+x #define w(y)printf("%d",(int)(y)) #define P(y)w(y)putchar('\n') main() { int x=2; P(F(5)*x); }A.12B.13C.14D.16

以下程序的运行结果是______。 float fun(int x,int y) { return(x+y); } main() { int a=2,b=5,c=8; printf("%3.1f\n",fun(int)fun(a+c,b),a-c); }A.编译出错B.9C.21D.9

以下程序的输出结果是( )。 int a=5; float x=3.14; a*=x*(‘E’ - ‘A’); printf(“%f\n”,(float)a);A.62.000000B.62.800000C.63.000000D.62

有以下程序: int fa(int x) { return x*x;) int fb(int x) { return x*x*x;} int f(int (*f1)().int (*f2)(),int x) { return f2(x)-f1(x); } main() { int i; i=f(fa,fb,2);printf("%d\n",i); } 程序运行后的输出结果是( )。A.-4B.1C.4D.8

有以下程序: #includestdio.h double f(double x); main( ) {double a=0; int i; for(i=0;i30;i+=10)a+=f((double)i); printf("%5.of\n",a); } double f(double x) { return x*x+1; } 程序运行后的输出结果是( )。A.503B.401C.500D.1404

有以下程序#includestdio.hdouble f(double x);main(){ double a=0;int i;for(i=0;i30;i+=10) a+=f((double)i);printf("%5.0f\n",a);}double f(double x){return x*x*i;}程序运行后的输出结果是A.503B.401C.500D.1404

程序段:int x=12;double y=3.141593;printf(”%d%8.6f”,x,y.;的输出结果是( )。A.123.141593SX 程序段:int x=12;double y=3.141593;printf(”%d%8.6f”,x,y.;的输出结果是( )。A.123.141593B.12 3.141593C.12,3.141593D.123.1415930

有以下程序:includemain(){int a;char c=10; float f=100.0;double x; a=f/=c*=(x=6.5 有以下程序: #include <stdio.h> main() { int a; char c=10; float f=100.0; double x; a=f/=c*=(x=6.5); printf("%d%d%3.1f%3.1f\n",a,c,f,x); } 程序运行后的输出结果是( )。A.1 65 1 6.5B.1 65 1.5 6.5C.1 65 1.0 6.5D.2 65 1.5 6.5

下面程序输出的结果是( )。 include using namespace std; int test(int n1 下面程序输出的结果是( )。 #include<iostream> using namespace std; int test(int n1,int n2) {return n1 +n2;} float test (int f1,float f2){return f1-f2;} float test(float x,float y){return(x+y)/2;} float test(float x,int y){return(x+y)*2;} void main(){ int a1=10; float a2=2.5f; cout<<test(a1,a2); }A.12.5B.7.5C.6.25D.25

试题24有以下程序#include stdio.hdouble f(double x);main(){ double a=0; int i;for(i=0;i30;i+=10) a+=f((double)i);printf(“%5.0f\n”, a);}double f(double x){ return x*x+1;}程序运行后的输出结果是()A.503B.401C.500D.1404

变量x、f、d分别为int,float,double类型的,除了f和d不能等于无穷大和NAN以外值可以任意选取,下面表达式为真的是()A、x==(int)(double)xB、x==(int)(float)xC、d==(double)(float)dD、(f+d)-f==d

假定变量x,f和d的类型分别为int 、float和double。下面表达式的值总是为1的是()A、x==(int)(float)xB、d==(double)(float)dC、f==(float)(double)fD、(f+d)-f==d

下列程序执行后的输出结果是() main( ) { int x='f'; printf(""%c /n"",'A'+(x-'a'+1)); }A、GB、HC、iD、J

单选题有以下程序:#include int f(int x); main(){ int n=1,m;  m=f(f(f(n))); printf(%d,m); }int f(int x) { return x*2;} 程序运行后的输出结果是(  )。A4B2C8D1

单选题程序段:int x=12;double y=3.141593;printf(%d%8.6f,x,y);输出结果是(  )。A123.141593B123.141493C12,3.141593D123.1415930

单选题有以下程序:#include int f(int x,int y){ return((y-x)*x);}main(){ int a=3,b=4,c=5,d; d=f(f(a,b),f(a,c)); printf(%d,d);}程序运行后的输出结果是(  )。A10B9C8D7