以下程序的输出结果是double f(int n){ int i; double s;s=1.0;for(i=1; i<=n; i++) s+=1.0/i;return s;}main(){ int i,m=3; float a=0.0;for(i=0; i
相似题目
-
有以下程序#include<stdio.h>int f(int x);main(){int n=1,m;m=f(f(f(n)));printf(”%d\n”,m);}int f(int x){return x*2;}程序运行后的输出结果是
-
程序段:int x=12; double y=3.141593; printf(“%d%8.6f”,x,y);的输出结果是
-
以下程序的输出结果是#define f(x) x*xmain( ){ int a=6 ,b=2 ,c ;c=f(a) / f(b) ;printf(%d \n,c);}
-
以下程序的输出结果是( )。int f(int n){if(n<=1)returnn;returnf(n-4)*n;}int main(){printf(%d,f(7));}
-
以下程序的输出结果是________。#includelong f(int n){if (n>2) return(f(n-1)+f(n-2));else return(2); }void main(){ printf('%d ',f(3)); }
-
以下程序的输出结果是 。main(){int b=5;#define b2#define f(x) b*(x)int y=3;printf(\%d\\n\,f(y+1));#undef bprintf(\%d\\n\,f(y+1));#define b3printf(\%d\\n\,f(y+1));}
-
以下程序的输出结果是________。int f(int b[],int m,int n){ int i,s=0;for(i=m;i
-
以下 程序代码的输出结果是:( ) int a=1.0; float b=2.0; double c=3.0 ; char d= ’ 1 ’ ; printf( “ %f ” ,a+b+c+d);
-
以下程序的输出结果是( )。#include \stdio.h\int f(int x){ return x*2; }main( ){ int n=1,m;m=f(f(f(n)));printf(\%d\\n\,m);}
-
有以下程序#includeviod f(int *p,int *q);main(){ int m=1,n=2,*r=&m;f(r,&n);printf(“%d,%d”,m,n);}void f(int *p,int *q){p=p+1;*q=*q+1;}程序运行后输出的结果是
-
以下程序的输出结果是( )。 include<stdio.h> include<math.h> main() {int a=1,b=4,c=2; float x=10.5,y=4.0,z; z=(a+b)/c+sqrt((double)y)*1.2/c+x; pritnf("%f&92;n",z);}
-
有以下程序: void f(int n,int * r) {int r1=0; if(n%3==0)r1=n/3; else if(n%5==0)r1=n/5; else f(--n,&r1); *r=r1;} main() {intm=7,r; f(m,&r);printf("%d\n",r);} 程序运行后的输出结果是______。
-
以下程序的输出结果是() define f(x)x*x main() {int a=6,c; c=f(a); printf("%d\n",c); )
-
有以下程序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);}执行后的输出结果是
-
有以下程序 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);} 程序运行后的输出结果是
-
以下程序的输出结果是【】。 include<iostream.h> int add(int x,int y) { retum X+y; } dOuble ad
-
有以下程序:define f(x) x*xmain(){int i;i=f(4+4)/f(2+2);printf("%d\n",i);}执行后输出结果是
-
有以下程序include<stdio.h>int f(int x);main(){int n=1,m;m=f(f(f(n)));printf(”%d\n”,m);}int f(int x){return x*2;}程序运行后的输出结果是()。
-
有以下程序: include<stdio.h> include<string.h> struct A {int a;char b[10];double C;); struct A f(struct A t): main() {struct A a={1001,"ZhangDa",l098.0}; a=f(a);printf("%d,%S,%6.1f\n",a.a,a.b,a.c); } struct A f(struct A t) {t.a= 1002;strcpy(t.b,"ChangRon9");t.c=1202.0;return t;} 程序运行后的输出结果是()。
-
以下程序的输出结果是【 】。 include main() { int i; for(i=′a′;i<′f′;i++,i++)printf("%c",i-′a′+′A′); printf("\n"); }
-
设double x=5.168;,执行printf(“%5.3f\n”,(int)(x*10+0.5)/10.0);后的输出结果是()
-
有以下程序: include <stdio.h> int f(int n); main() (int a=3,s; s=f(a);s=s+f(a);printf("%d",s); int f(int n) (static int a=1; n+=a++: return n: 程序运行以后输出的结果是()。
-
有以下程序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”,a,c,f,x);}程序运行后的输出结果是
-
【单选题】程序段:int x=12; double y=3.141593; printf(“%−4.3f,%d”, y, x);的输出结果是(□代表一个空格)()。
推荐题目
- 常用做道渣材料有()。
- 换室操纵时,必须按规定开闭各开关及手柄,断开或锁闭非操纵端开关、手柄、车门、车窗,并对列车管施行最大有效减压或紧急制动,确认机车制动缸压力在()kpa以上时,方准进行换室操作。
- 为实现拉伸过程,拉伸应力应小于变形区中金属的变形抗力。
- 下列属于的发育阶段之一的是()
- 不属于清洁能源。()
- DKZ5车辆定修规程规定,灭弧罩耐弧壁厚度损耗到()时换新品。
- 具有雌激素样作用的化合物是()
- 使用雨(污)水编辑查询命令描述错误的是()
- 事关全局性工作的一些权力,领导者应采用()的方法。
- 本讲指出,要把尊法学法守法用法情况作为考核领导班子和领导干部的重要内容,把法治观念强不强、法治素养好不好作为衡量干部德才的重要标准。()