题目
下列程序的输出结果为
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.不确定
第1题
下列程序的输出结果为 【9】 。
main ()
{int x=3,y=5;
printf ("%d",x=(x--)*(--y));
}
第2题
下列程序的输出结果为 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<<end1; }
A.hello
B.the
C.world
D.hello the world
第4题
在标准C语言中,下列程序的输出结果为______。 main () { printf ("%e", 123.456); }
A.123.456
B.123.4560
C.1.23456e2
D.1.234560e+002
第5题
A.hello
B.the
C.world
D.hellotheworld
第6题
下列程序的输出结果为 #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
第7题
下列程序的输出结果为
#include
void main()
{
char,a[]={”hello",”the",”world”};
char**pa=a:
pa++;
cout<<*pa<
}
A.hello
B.the
C.world
D.hellotheworld
第8题
A.hello
B.the
C.world
D.hellotheworld
第9题
执行下列程序段之后,输出的结果为______。 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
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!