首页 > 计算机等级考试
题目内容 (请给出正确答案)
[主观题]

下面程序的输出结果是#include<stdio.h>main(){int i=010,j=10;Printf(“%d,%d”,++i,j--);}A.11,1

下面程序的输出结果是 #include<stdio.h> main() {int i=010,j=10; Printf(“%d,%d”,++i,j--); }

A.11,10

B.9,10

C.010,9

D.10,9

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“下面程序的输出结果是#include<stdio.h>mai…”相关的问题
第1题
下面程序运行后的输出结果是()。#include<stdio.h>main(){int a[5]={1,0,4,2,0},b[5]={1,2,3,4,5}

下面程序运行后的输出结果是()。 #include<stdio.h> main() {int a[5]={1,0,4,2,0},b[5]={1,2,3,4,5},i,s=0; for(i=0;i<5;i++)s=s+b[a[i]]; printf("%d\n”,s); }

A.12

B.15

C.11

D.8

点击查看答案
第2题
下面程序的输出结果是______。#include<stdio.h>main(){char ch[7]={"12ab56"}; int i,s=0; for(i

下面程序的输出结果是______。 #include<stdio.h> main() { char ch[7]={"12ab56"}; int i,s=0; for(i=0;ch[i]>='0'&&ch[i]<='9';i+=2) s=10*s+ch[i]-'0'; printf("%d\n",s); }

A.1

B.1256

C.12ab56

D.1 2 5 6

点击查看答案
第3题
下面程序的输出结果是()。#include <iostream>using namespace std;void main(){ inta[3][3] ={{

下面程序的输出结果是()。 #include <iostream> using namespace std; void main() { inta[3][3] ={{1,2},{3,4},{5}}; int s =0; for(int i=1;i<3;i++) for(int j=0;j<=i;j++) s+=a[i][j]; cout<<s<<endl;

A.12

B.4

C.15

D.13

点击查看答案
第4题
执行下面程序后输出的结果是()。#include <iostream>using namespace std;int main(){ int a[4][4

执行下面程序后输出的结果是()。 #include <iostream> using namespace std; int main(){ int a[4][4]={{1,2,3,-4},{7,-12,-13,8},{-21,9,0,-24},{-31,10,-33,11}}; int i,j,s=0; for(i=0;i<4;i++){ for(j=0;j<4;j++){ if(a[i][j]>=0)continue; s+=a[i][j]; } } coat<<s<<endl; return 0; }

A.141

B.-138

C.-1

D.75

点击查看答案
第5题
下面程序运行输出的结果是【】。 include <iostream> using namespace std; int main(){char a[]="C

下面程序运行输出的结果是【 】。

include <iostream>

using namespace std;

int main(){

char a[]="Chinese";

a[3]='\0';

cout<<a<<endl;

return 0;

}

点击查看答案
第6题
以下程序的输出结果是()。 #include<iostream.h>longfun(intn){longs; if(n=-1‖n==2)s=2;

以下程序的输出结果是()。

#include<iostream.h>

longfun(intn)

{longs;

if(n=-1‖n==2)s=2;

elses=n-fun(n-l):

returns;

}

voidmain(){cout<<fun(3);}

A.1

B.2

C.3

D.4

点击查看答案
第7题
设已执行预编译命令#include<string.h>,以下程序段的输出结果是()。char s[]="an apple";printf("

设已执行预编译命令#include<string.h>,以下程序段的输出结果是()。 char s[]=" an apple" ; printf(" %d\n" ,strlen(s));

A.7

B.8

C.9

D.10

点击查看答案
第8题
有以下程序 #include<stdio.h> #define PT3.5; #define S(x)PT*x*x; main() { inta=1,b2; printf("%4.1f\n",S(a+b); } 程序运行后的输出结果是______。

A.14.0

B.31.5

C.7.5

D.程序有错无输出结果

点击查看答案
第9题
下列程序执行的输出结果是()。 #include<stdio.h> main() {char a[2][4];strcpy(a,"are");strcpy

下列程序执行的输出结果是()。 #include<stdio.h> main() { char a[2][4]; strcpy(a,"are");strcpy(a[1],"you"); a[0][3]='&'; printf("%s\n",a); }

A.are&you

B.you

C.are

D.&

点击查看答案
第10题
以下程序运行后,输出结果是______。 #define P4.5 #define S(x)P*x*x #include<stdio.h> main() {

以下程序运行后,输出结果是______。 #define P4.5 #define S(x)P*x*x #include<stdio.h> main() { int a=2,b=3; printf("%.1f\n",S(a+b)); }

A.49.5

B.112.5

C.18

D.24

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