重要提示:请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
首页 > 大学专科> 电子信息
网友您好,请在下方输入框内输入要搜索的题目:
搜题
拍照、语音搜题,请扫码下载APP
扫一扫 下载APP
题目内容 (请给出正确答案)
[主观题]

下面程序的输出结果是【 】。 char b[]="ABCD"; main() { char *p=b; for(;*p;p

下面程序的输出结果是【 】。 char b[]="ABCD"; main() { char *p=b; for(;*p;p++) printf("%s",p); printf("\n"); }

答案
查看答案
更多“下面程序的输出结果是【 】。 char b[]="ABCD"; main() { char *p=b; for(;*p;p”相关的问题

第1题

下面程序的输出结果是______。 #include"stdio.h" main() (cbar b[]="ABCD"; char

下面程序的输出结果是______。

#include"stdio.h"

main()

(cbar b[]="ABCD";

char*chp;

for(chp=b;*chp;chp+=2)

printf("%s\t",chp);

printf("\n");

}

点击查看答案

第2题

下面程序的输出结果是【 】。 char b[]="ABCD"; main() { char b[30]; st

下面程序的输出结果是【 】。 char b[]="ABCD"; main() { char b[30]; strcpy(&b[0],"GH"); strcpy(&b[1],"GH”); strcpy(&b[2],"GH"); printf("%s\n",B) ; }

点击查看答案

第3题

下面程序的输出结果是【 】。 include<stdio.h> main() { static char a[]="language"

下面程序的输出结果是【 】。 include<stdio.h> main() { static char a[]="language" ,b[]="program"; char*ptrl=a,*ptr2=b; int k; for(k=0;k<7;k++) if(*(ptrl+k)==*(ptr2+k)) printf("%c",*(ptrl+k));}

点击查看答案

第4题

下面程序的输出结果是【 】。 include <stdio.h> main() { staic char b[]="Goodbye";

下面程序的输出结果是【 】。 include <stdio.h> main() { staic char b[]="Goodbye"; char * chp = &b [7]; while(- - chp>=&b[0])putchar (* chp); printf("\n"); }

点击查看答案

第5题

下面程序的输出结果是【 】。 main() { int i=3,j=2; char * a="DCBA"; printf("%c

下面程序的输出结果是【 】。 main() { int i=3,j=2; char * a="DCBA"; printf("%c%c\n",a[i],a[j]) }

点击查看答案

第6题

下面程序的输出结果是【】。char b[]="ABCD";main(){char b[30];strcpy(&b[0],"GH");strcpy(&am

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

char b[]="ABCD";

main()

{

char b[30];

strcpy(&b[0],"GH");

strcpy(&b[1],"GH");

strcpy(&b[2],"GH");

printf("%s\n",b);

}

点击查看答案

第7题

执行下面程序后,输出结果是【 】。 main() { char s[12]="very good!"; printf("%d",

执行下面程序后,输出结果是【 】。 main() { char s[12]="very good!"; printf("%d",strlen(s)); }

点击查看答案

第8题

阅读下面程序段,则执行后输出的结果是()。 include“stdio.h” void main() { char fun

阅读下面程序段,则执行后输出的结果是()。 include“stdio.h” void main() { char fun(char,int); char a;‘A’; int b=13; a=fun(a,b); putchar(a); ) char fun(char a,int b) { char k; k=a+b; return k; )

A.A

B.M

C.N

D.L

点击查看答案

第9题

下面程序的输出结果是()。 include <stdi0.h> include<string.h> main()

下面程序的输出结果是()。 include <stdi0.h> include<string.h> main() {char*pl=“abc”,str[50]=“xyz”; strcpy(Str+2,p1); printf(“%S\n”,Str); }

A.xyzabcABC

B.zabcABC

C.xyabc

D.yzabcABC

点击查看答案
下载APP
关注公众号
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案 购买前请仔细阅读《购买须知》
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《服务协议》《购买须知》
立即支付 系统将自动为您注册账号
已付款,但不能查看答案,请点这里登录即可>>>
请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示:请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
请用微信扫码测试
优题宝