若有以下程序段,则选项中值为2的是()。 struCt a{int n,*next;}; int x=1,y=2,z=3;
若有以下程序段,则选项中值为2的是()。 struCt a{int n,*next;}; int x=1,y=2,z=3; struct a s[3],*p=s; S [0].next=&x;s[1].next=&V;S[2].next=&z;
A.*(p++)一>next
B.*(p)一>next
C.(*p).next
D.(p++)一>next
若有以下程序段,则选项中值为2的是()。 struCt a{int n,*next;}; int x=1,y=2,z=3; struct a s[3],*p=s; S [0].next=&x;s[1].next=&V;S[2].next=&z;
A.*(p++)一>next
B.*(p)一>next
C.(*p).next
D.(p++)一>next
A.++(p->n)
B.(*p).n
C.p->n++
D.p->n
A.3,2,1,0
B.3,2,1,0,-1
C.4,3,2,1,0
D.3,2,1,0,-1,-2
若有以下程序段 charstr[4][12]={aa,bbb,ccccc,d),*strp[4]; inti; for(i=0;i<4;i++)strp[i]=str[i];不能正确引用字符串的选项是
A.strp
B.str[0]
C.strp[3]
D.*strp
A.输出的是1
B.输出的是1和-2
C.输出的是3和0
D.是死循环
A.输出的是3和0
B.输出的是1和-2
C.是死循环
D.输出的是1
A.(p++)->m
B.*(p++)->m
C.(*p).m
D.*(p)->m
若有以下程序段 doublex=5.16894; printf(%f\n,(int)(x*1000+0.5)/(double)1000); 则程序段的输出结果是
A.5.175000
B.5.169000
C.5.170000
D.5.168
A.x=1,y=2
B.x=2,y=2
C.x=2,y=1
D.x=1,y=1
A.if(c<a) x=1; else if(b<a) x=1; else x=3;
B.if(a<3)x=3; else if(a<2)x=2; else x=1;
C.if(a<3)x=3; if(a<2)x=2; if(a<1)x=1;
D.if(a<b) x=b; if(b<c) x=c; if(c<a) x=a;