题目内容 (请给出正确答案)
[主观题]

阅读程序,写出程序的运行结果。 void main() { struct st { int n: struct st *next; } a[3]={5,

4.阅读程序,写出程序的运行结果。 void main() { struct st { int n: struct st *next; } a[3]={5,&a[1],7,&a[2],9,&a[0]}, *p=a; int i; for(i=0; i<3; i++) p="p-">next; printf(″p->n=%d\n″, p->n); } 程序的运行结果: ①

查看答案
如搜索结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能会需要:
您的账号:
发送账号密码至手机
发送
更多“阅读程序,写出程序的运行结果。 void main() { …”相关的问题

第1题

设有以下程序: struct st{int n;struct st *next;}; static struct st a[3]={5,&a[1],7,&
;a[2],9,'\0'},*p; p=&a [0]; 下面选项中,表达式值为6的是______。

A.p++->n

B.p->n++

C.(*p).n++

D.++p->n

点击查看答案

第2题

设有以下程序: struct st{int n;struct st*next;}; static struct st a[3]={5,&a[1],7,&a[2],9,'\0\},*p; p=&a[0];下面其值为6的表达式为______。

A.p++->n

B.p->n++

C.(*p).n++

D.++p->n

点击查看答案

第3题

设有以下程序段:struct st{int n;struct st *next;};static struct st a[3]={5,&a[1],7,&a[2],9,'\0'),*p;p=&a[0];下面选项中,其值为6的表达式为______。

A.P++->n

B.p->n++

C.(*p).n++

D.++p->n

点击查看答案

第4题

若有以下程序段 structst{intn;structst*next;); structsta[3]={5,&a[1],7,&a[2],9,\0},*p; p=&a[0]; 则以下选项中值为6的表达式是

A.++(p->n)

B.(*p).n

C.p->n++

D.p->n

点击查看答案

第5题

struct student { long num; int score; struct student*next; }; struct student*insert(struct student*head,struct student * p) { struct student*p1,*p2,*p0; p1=head; (1): if(p1==NULL) { head=p0; (2); } else { if((3)) { p2=p1; p1=p1->next; } if(p0->num==pl->num) { (4); (5); n=n+1: } else { printf(“\n%ld not been found!\n”,num); } } return head; }

点击查看答案

第6题

以下程序运行后的输出结果是【 】。 main() { int a=3,b=4,c=5,t=99; if(b<a&&a<c) t=a;a=c;c=t; if(a<c&&b<c) t=b;b=a;a=t; printf("%d%d%d\n",a,b,c) ; }

点击查看答案

第7题

以下程序运行后的输出结果是【 】。 main() { int a=3,b=4,c=5,t=99; if(b<a &am
p;& a<c)t=-a;a=c;c=t; if(a<c && b<c)t=b;b=a;a=t; printf("%d %d %d\n",a,b,c); }

点击查看答案

第8题

下列程序的运行结果是0.?????#indude?????voidmain()??

下列程序的运行结果是0.?????#indude<stdio.h>?????voidmain()?????(?int

x8?????????x:xx??????if(x%3)prit(%d,x);nn.?????????

irit("%-,-x);??????

A.7.4,2

B.87,5,2

C.9,7,6,4

D.8.,5,4,2

点击查看答案

第9题

以下程序运行后的输出结果是( )。 main() {int a=3,b=4,c=5,t=79; if(b<a&&a<C)t=a;a=c;c=t; if(a<c&&b<C)t=b;b=a;a=t;printf("%d%d%d\n",a,b,C); }

点击查看答案

第10题

有以下程序struct st{ int x; int*y;} *p;int dt[4]={1,2,3,4};struct st aa[4]={10,&dt[0],20,&dt[1],30,&dt[2],40,&dt[3]};main(){ p=aa; printf("%d\n",++p->x); printf("%d\n",(p)->x); printf
点击查看答案
热门考试 全部 >
相关试卷 全部 >
账号:
你好,尊敬的上学吧用户
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
谢谢您的反馈

您认为本题答案有误,我们将认真、仔细核查,
如果您知道正确答案,欢迎您来纠错

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
上学吧
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反上学吧购买须知被冻结。您可在“上学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
上学吧
点击打开微信