题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-11-03 02:17:20

[单项选择]有以下程序:
#include <stdio.h>
main( )
union
charch[2];
int d;
s;
s.d=0x4321;
printf("%x,%x/n",s.ch[0],s.ch[1]);

在16位编译系统上,程序执行后的输出结果是( )。
A. 21,43
B. 43,21
C. 43,00
D. 21,00

更多"有以下程序: #include <stdio.h> main( )"的相关试题:

[单项选择]有以下程序:
#include <stdio.h>
main( )
union
charch[2];
int d;
s;
s.d=0x4321;
printf("%x,%x/n",s.ch[0],s.ch[1]);

在16位编译系统上,程序执行后的输出结果是( )。
A. 21,43
B. 43,21
C. 43,00
D. 21,00
[单项选择]有以下程序:
#include <stdio.h>
union pw
int i; char ch[2]; a;
main( )
a.ch[0]=13;
a.ch[1]=0;
printf("%d/n",a.i);

程序的输出结果是(注意:ch[0]在低字节,ch[1]在高字节)( )。
A. 13
B. 14
C. 208
D. 209
[单项选择]有以下程序
point(char *p) p+=3;
main( )
char b[4]='a'.'b','c','d', *p=b;
point(p);
printf("%c/n",*p);

程序运行后的输出结果是
A. a
B. b
C. c
D. d
[单项选择]有以下程序
point(char *p) p+=3;
main( )
char b[4]='a','b','c','d',*p=b;
point(p); printf("%c/n",*p);

程序运行后的输出结果是______。
A. a
B. b
C. c
D. d
[单项选择]阅读以下程序
#includc<iostream.h>
vold main( )

Char line[10];
cin>>line;
cout<<line<<endl;

如运行时输入This is example.<CR>,则程序的输出结果是
A. This
B. This is
C. This is a
D. This is an example.
[单项选择]阅读以下程序

#include<iostream.h>

void main( )



char line[10];

cin>>line;

cout<<line<<endl;



如运行时输入This is example.<CR>,则程序的输出结果是
A. This
B. This is
C. This is a
D. This is an example.
[单项选择]有以下程序:
#include <string.h>
main( )

char str[][20]="Hello","beijing",*p=str;
ptintf("%/n",strlen(p+20));

程序运行后的输出结果是( )。
A. 0
B. 5
C. 7
D. 20
[单项选择]有以下程序:
# include<string.h>
main( )
char str[][20]="Hello","Beijing",*p=str;
printf("%d/n",strlen(p+20));

程序运行后的输出结果是 ______。
A. 0
B. 5
C. 7
D. 20
[单项选择]以下程序运行后的输出结果是
#include
#include
main( )
char str[][20]='One * World", "One * Dream!", *p=str[1];
printf("%d,", strlen(p)); printf("%s/n", p);

A. 9,One * World
B. 9,One * Dream
C. 10,One * Dream!
D. 10,One * World
[单项选择]有以下程序
#include 〈string.h〉  
main ( )

char p[]='a','b ,'c', q[10]='a','b','c';
printf("%d %d/n",strlen(p),strlen(q));

以下叙述中正确的是
A. 在给p和q数组置初值时,系统会自动添加字符串结束符,故输出的长度都为3
B. 由于p数组中没有字符申结束符,长度不能确定;但q数组中字符串长度为3
C. 由于q数组中没有字符串结束符,长度不能确定:但p数组中字符串长度为3
D. 由于p和q数组中都没有字符串结束符,故长度都不能确定
[单项选择]有以下程序
point(char*p)p+=3;
main( )
char b[4]='a','b','c','d',*p=b;
point(p);printf("%c/n",*p);

程序运行后的输出结果是
A. a
B. b
C. c
D. d

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码