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

下列程序的输出结果为()。main(){int a=4,b=3,c=1,d;d=a&&b&&b>c-! 0;cout<<d;}A

下列程序的输出结果为()。 main() { int a=4,b=3,c=1,d; d=a&&b&&b>c-! 0; cout<<d; }

A.0

B.3

C.1

D.4

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“下列程序的输出结果为()。main(){int a=4,b=…”相关的问题
第1题
下列程序的输出结果为()。#include (iostream)using namespace std; void main()char,a[ ] = {

下列程序的输出结果为()。 #include (iostream) using namespace std; void main() char,a[ ] = { "hello" ," the" ," world" }; char * * pa = a: pa + +; cout << * pa << ENDL; }

A.hello

B.the

C.world

D.hellotheworld

点击查看答案
第2题
下列程序的输出结果为main(){union u{char *name;int age;int income;}ss.name="WANGLIONG";s.ag

下列程序的输出结果为 main() { union u {char *name; int age; int income;}s s.name="WANGLIONG"; s.age=28; s.income=1000; printf("%d\n",s.age); }

A.28

B.1000

C.0

D.不确定

点击查看答案
第3题
下列程序的输出结果为#include<iostream.h>void main(){char * a[ ] ={"hello},"the"," world"};char * * pa=a;pa++;cout < < * pa < < endl;}

A.hello

B.the

C.world

D.hellotheworld

点击查看答案
第4题
下列程序的输出结果为main(){ union u { char*name;int age;int income;}s s.name="WANGLIONG";

下列程序的输出结果为 main() { union u { char*name; int age; int income;}s s.name="WANGLIONG"; s.age=28; s.income=1000; printf("%d\n",s.age); }

A.28

B.1000

C.0

D.不确定

点击查看答案
第5题
下列程序的输出结果为 #include voidmain() { char,a[]={”hello",”the",”world”}; char

下列程序的输出结果为

#include

void main()

{

char,a[]={”hello",”the",”world”};

char**pa=a:

pa++;

cout<<*pa<

}

A.hello

B.the

C.world

D.hellotheworld

点击查看答案
第6题
执行下列程序段之后,输出的结果为______。public class ex43{ public static void main(String[]a

执行下列程序段之后,输出的结果为______。 public class ex43 { public static void main(String[] args) { short a=127; short b=4; a>>>=--b; System.out.println(a); } }

A.10

B.15

C.30

D.128

点击查看答案
第7题
下列程序的输出结果为 #include<iostream.h> void main() { char * a[ ]={"hello","the","world"}; char * * pa=a; pa++; cout <<*pa<<end1; }

A.hello

B.the

C.world

D.hellotheworld

点击查看答案
第8题
下列程序段的输出结果为()。#include<stdio. h>main(){ static char a[]="language";char*p; p=a;

下列程序段的输出结果为()。#include<stdio. h>main(){ static char a[]="language"; char*p; p=a; for(p=a;p<a+8;p+=2) putchar(*p);}

A.language

B.lnug

C.有语法错误

D.lang

点击查看答案
第9题
下列程序的输出结果为()。#includevoid main(){int a[] = {1, 2, 3, 4, 5}, i;for(i=1; i<5; i++){printf("%d", a[i]-a[i-1]);}}

A.1234

B.2345

C.11111

D.1111

点击查看答案
第10题
下列程序运行时,若输入labced12df<回车> 输出结果为【10】 #include <stdio.h>

下列程序运行时,若输入labced12df<回车> 输出结果为【10】

#include <stdio.h>

main()

{char a =0,ch;

while((ch=getchar())!=’\n’)

{if(a&2!=0&&(ch>’a’&&ch<=’z’)) ch=ch-‘a’+’A’;

a++;putchar(ch);

}

printf(“\n”);

}

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