题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-01-27 03:48:04

[填空题]以下程序的输出是 【8】
main( )

char str1[]="How do you do",*p1=str1;
strcpy(str1+strlen(str1)/2,"es she");
printf("%s/n",p1);

更多"以下程序的输出是 【8】 。 main( ) char str1["的相关试题:

[填空题]以下程序的输出是 【7】
main( )

char str1[]=How do you do",*p=strl;
strcpy(str1+strlen(str1)/2"es she");
pfinff("%s/n",p1);

[填空题]以下程序的输出是______。
main( )

char str1[]=How do you do",*p=strl;
strcpy(str1+strlen(str1)/2"es she");
pfinff("%s/n",p1);

[填空题]以下程序的输出是 【7】
main( )

char str1[]="How do you do",*pl=str1;
strcpy(str1+strlen(str1)/2,"es she");
intf("%s/n",p1);
[填空题]以下程序的输出是 【8】 。 main( ) { char str1[]="How do you do",*p1=str1; strcpy(str1+strlen(str1)/2,"es she"); printf("%s/n",p1); }
[填空题]下程序的输出是 【8】
main( )

char str1[]="How do you do",*p1=str1;
strcpy(str1+strlen(str1)/2,"es she");
printf("%s/n",p1);

[填空题]以下程序的输出是 【7】 。 main( ) { char str1[]=How do you do",*p=strl; strcpy(str1+strlen(str1)/2"es she"); pfinff("%s/n",p1); }
[单项选择]以下程序输出的结果为______。
main( )
char*alpha[6]="ABCD","EFGH","IJKL","MNOP","QRST","UVWX";
char**p;
int i;
p=alpha;
for(i=0,i<4;i++)
prntf("%s",p[i]);

A. ABCDEFGHIJKL
B. ABCD
C. ABCDEFGHIJKLMNOP
D. AEIM
[单项选择]以下程序的输出结果是( )。
main( )
char*s="12134211";
int v[4]=0,0,0,0),k,i;
for(k=0;s[k];k++)
switch(s[k])
case’1’:i=0;
case’2’:i=1;
case’3’:i=2;
case’4’:i=3;

v[i]++:

for(k=0;k<4;k++)printf("%d",v[k]);
A. 4 2 1 1
B. 0 0 0 8
C. 4 6 7 8
D. 8 8 8 8
[填空题]以下程序运行后的输出结果是【 】。 main( ) {char c; int n=100; float f=10; double x; x=f*=n/=(c=50); printf("%d %f/n",n,x); }
[填空题]以下程序运行后的输出结果是
# include<string.h>
main( )
char ch[]="abc",x[3][4];int i
for(i=0;i<3;i++) strcpy(x[i],ch);
for(i=0;i<3;i++)printf("%s",&x[i][i]);
printf("//n");

[填空题]以下程序的输出结果是______。
#include
main( )
char *ch[4]=("red ","green","blue");
int i=0;
while(ch[i])
putchar(ch[i][0]);i++;

[填空题]以下程序的输出结果是 【6】 。 main( ) { char c=’z’; printf("%c",c-25);}
[填空题]以下程序运行后的输出结果是【 】。   main( )   { char m;    m=’’B’’+32; printf("%c/n",m);   }
[单项选择]以下程序段的输出结果是()。
#include<stdio.h>
main( )
char p[][4]="ABC","DEF","GHI";
int i;
for(i=0;i<3;i++)
puts(p[i]);

A. A B C
B. A D G
C. A B C
D. A B C
[填空题]下列程序的输出结果是 【8】
main( )
char b[]="Hello you";
b[5]=0;
printf("%s/n",b);

[填空题]以下程序的输出结果是______。
main( )
char s[]="abcdef";
s[3]=’/0’;
printf("%s/n",s);

我来回答:

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

订单号:

截图扫码使用小程序[完全免费查看答案]
请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码