A.点式探测器
B.缆式探测器
C.离子型探测器
D.红外光束探测器
第1题
运行下列程序,输出结果是(). struct student { int num; struct student *next; }; int main() { struct student a[3]={1,&a[1],2,&a[2],3,&a[0]},*p; p=&a[1]; printf("%d%d\n ",p->num,p->next->num); return 0; }
A、12
B、13
C、23
D、31
第2题
运行下列程序,输出结果是(). struct student { int num; struct student *next; }; int main() { struct student a[3]={1,&a[1],2,&a[2],3,&a[0]},*p; p=&a[1]; printf("%d%d\n ",p->num,p->next->num); return 0; }
A、13
B、23
C、31
D、12
第3题
下列程序的输出结果是() struct abc { int a,b,c;}; main() { struct abc s[2]={{1,2,3},{4,5,6}}; int t; t=s[0].a+s[1].b; printf("%d\n",t); }
A.3
B.4
C.5
D.6
第4题
下列程序的输出结果是______。 struct abc { int a,b,c;}; main () { struct abc s[2]={{1,2,3},{4,5,6}}; int t;t=s[0].a+s[1].b; printf("%d\n",t); }
A.5
B.6
C.7
D.8
第5题
下列程序的输出结果是()。 #include <stdio.h> struct abc { int a, b, c, s;}; main() { struct abc s[2]={{1,2,3},{4,5,6}}; int t; t=s[0].a+s[1].b; printf("%d\n",t); }
A.5
B.6
C.7
D.8
第6题
A.10
B.11
C.20
D.21
第7题
下列程序的输出结果是______。 struct exmple { int x; int y; }num[2]=}1,2,3,2}; main() { printf("%d\n",num[1].y*num[0].x/num[1].x);}
A.0
B.1
C.3
D.6
第8题
下列程序的输出结果是()。 #include<stdio.h> main { struct st { int y,x,z; }; union { long i; int j; char k; }un; printf("%d,%d\n",sizeof(struct st),sizeof(un)) }
A.6,2
B.6,4
C.8,4
D.8,6
第9题
下列程序的输出结果是()。
#include<stdio.h>
main
{ struct st
{ int y,x,z;
};
union
{ long i;
int j;
char k;
}un;
printf("%d,%d\n",sizeof(struct st),sizeof(un))
}
A.6,2
B.6,4
C.8,4
D.8,6
第10题
下列程序的输出结果是()。 #include "stdio.h" main() { struct st { int y,x,z;}; union {long i;int j; char k;} un; printf("%d,%d\n",sizeo(struct st),sizeof(un)); }
A.6,2
B.6,4
C.8,4
D.8,6
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!