首页 > 大学本科> 网课在线教育
题目内容 (请给出正确答案)
[单选题]

‍以下程序的输出结果是()。‏#include‏int func(int s);‏void main()‏{int i,x=0;for(i=0;i<4;i++){x=func(i+1);‏printf("%3d",x);}printf("/n");}int func(int s)‏{int x;‏static int t=3;x=s+t;‏t++;‏return x;}

A.4 4 4 4

B. 4 6 8 10

C. 4 5 6 7

D. 4 3 2 1

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“‍以下程序的输出结果是( )。‏#include‏int f…”相关的问题
第1题
以下程序的执行结果是__。#include<iostream.h>voidfunc(int);voidfunc(double);voidmain(){dou
以下程序的执行结果是__。#include<iostream.h>voidfunc(int);voidfunc(double);voidmain(){dou

以下程序的执行结果是__。

#include<iostream.h>voidfunc(int);voidfunc(double);voidmain()

{

doublea=88.18;func(a);intb=97;func(b);}voidfunc(intx){

cout<<x<<endl;}

voidfunc(doublex){

cout<<x<<",";}

点击查看答案
第2题
以下程序的输出结果是【 】。 include<stdio.h> main() { int a=0; a+ =(a=8)

以下程序的输出结果是【 】。 include<stdio.h> main() { int a=0; a+ =(a=8); printf("%d\n",a); }

点击查看答案
第3题
以下程序的输出结果是______。 include<stdio.h> main() { int x=10,y=10; p

以下程序的输出结果是______。 include<stdio.h> main() { int x=10,y=10; printf("%d%d\n",x--,--y); }

点击查看答案
第4题
以下程序的输出结果是【 】。 include <stdio.h> main() { int a=2,b=3,c=4;

以下程序的输出结果是【 】。 include <stdio.h> main() { int a=2,b=3,c=4; a* =16+(b++) -(c); Printf("%d",a); }

点击查看答案
第5题
以下程序的输出结果是( )。 #include<stdio.h> main() {int i=010,j=10; printf("%d,%d\n",++i,j--);}

A.11,10

B.9,10

C.010,9

D.10,9

点击查看答案
第6题
以下程序的输出结果是【 】。 include <stdio.h> main() { int i; for(i=a;i<f;i

以下程序的输出结果是【 】。 include <stdio.h> main() { int i; for(i=a;i<f;i++,i++)printf("%c",i-a+A); printf("\n"); }

点击查看答案
第7题
分析以下程序: #includevoid fun(); return 0; } 以上程序的输出结果是

A.65

B.66

C.A

D.B

点击查看答案
第8题
以下程序输出的结果是【 】。 include <stdio.h> main() { int a=5,b=4,c=3,d;

以下程序输出的结果是【 】。 include <stdio.h> main() { int a=5,b=4,c=3,d; d=(a>b>c); printf("%d\n",d); }

点击查看答案
第9题
以下程序的输出结果是______。 include<stdio.h> main(); }

点击查看答案
第10题
以下程序运行后的输出结果是____。 #include main()

点击查看答案
退出 登录/注册
发送账号至手机
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改