首页 > 大学专科> 电子信息
题目内容 (请给出正确答案)
[主观题]

以下程序运行后的输出结果是【 】。 struct NODE { int num; stmct NODE *nex

t; }; main() {struct NODE s[3]={{1,\0),{2,\0),{3,\0}),*p,*q,*r; int sum=0; s[0].next=s+1; s[1].next=s+2; s[2].next=s; p=s q=p->next; r=q->next; sum+=q->next->num; sum+=r->next->next->num; printf("%d\n",sum); }

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“以下程序运行后的输出结果是【 】。 struct NODE …”相关的问题
第1题
若有如下程序: include"stdio.h" main() {char s[30]; strcpy(&s[0],"abc"); st

若有如下程序: include"stdio.h" main() {char s[30]; strcpy(&s[0],"abc"); strcpy(&s[1],"de"); strcpy(&s[2],"f"); printf("%s\n",s); } 则程序运行后的输出结果是【 】。

点击查看答案
第2题
以下程序的输出结果是______。 main() { char st[]:"hello\O\t\\"; printf(&

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

main()

{ char st[]:"hello\O\t\\";

printf("%d,%d\n",strlen(st),sizeof(st));

}

点击查看答案
第3题
以下程序运行后的输出结果是______。 char s[]="\\141\141abc\t"; printf(&quo

以下程序运行后的输出结果是______。

char s[]="\\141\141abc\t";

printf("%d\n",strlen(s));

点击查看答案
第4题
以下程序运行后的输出结果是______。 main() {char m; m='B'+32;printf("%c\n",

以下程序运行后的输出结果是______。

main()

{char m;

m='B'+32;printf("%c\n",m);

}

点击查看答案
第5题
以下程序运行后的输出结果是【 】。 include <stdio.h> main () { iht x=

以下程序运行后的输出结果是【 】。 include <stdio.h> main () { iht x=0210; printf("%x \n" ,x); }

点击查看答案
第6题
以下程序运行后的输出结果是______。 main() { char s[]="9876",*P; for(p=s;p<s+2;p++)

以下程序运行后的输出结果是______。

main()

{ char s[]="9876",*P;

for(p=s;p<s+2;p++)

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

}

点击查看答案
第7题
以下程序运行后的输出结果是【 】。 include <stdio.h> main() { char m; m=

以下程序运行后的输出结果是【 】。 include <stdio.h> main() { char m; m=B+32; printf("%c\n",m); }

点击查看答案
第8题
以下程序运行后的输出结果是______。 main { inn a=b= c=5: if (c=a+b

以下程序运行后的输出结果是______。 main { inn a=b= c=5: if (c=a+b) printf ("yes\n); else printf ("no\n); }

点击查看答案
第9题
以下程序运行后的输出结果是______。 main() { int a,b,c; a=25; b=025;

以下程序运行后的输出结果是______。 main() { int a,b,c; a=25; b=025; c=ox25; pfintf("%d %d% %d\n",a,b,c); }

点击查看答案
第10题
以下程序运行后的输出结果是【 】。 main() { int m=011,n=11; printf("%d %d\n",

以下程序运行后的输出结果是【 】。 main() { int m=011,n=11; printf("%d %d\n",++m,n++); }

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