A.法的个别性调整
B.法的规范性调整
C.法的习惯性调整
D.法的临时性调整
第1题
A.10
B.11
C.20
D.21
第2题
(38)有以下程序
#include <stdio.h>
struct S
{ int a,b;}data[2]={10,100,20,200};
main()
{ struct S p=data[1];
printf("%d\n",++(p.a));
}
程序运行后的输出结果是
A)10
B)11
C)20
D)21
第3题
有以下程序: #include <stdio.h> struct s { int x,y;} data[2]={10,100,20,200}; main() { struct s *p=data; printf("%d\n",++(p->x)); 程序运行后的输出结果是()。
A.10
B.11
C.20
D.21
第4题
有以下程序:
#include<stdio.h>
struct S
{int a,b;)data[2]=10,100,20,200);
main()
{struct S p=data[l];
printf("%d\n",++(p.a));
}
程序运行后的输出结果是()。
A.10
B.11
C.20
D.21
第5题
有以下程序
struct S {int n; int a[20];}; void f(struct S *P) {int i,j,t; for(i=0;in-1;i++) for(j=i+1;jn;j++) if(p->a[i]>p->a[j]) { t=p->a[i]; p->a[i]=p->a[j]; p->a[j]=t; } } main() {int i; struct S s={10,{2,3,1,6,8,7,5,4,10,9}}; f(&s); for(i=0;i printf(“%d”,s.a[i]); } 程序运行后的输出结果是()。 A.1,2,3,4,5,6,7,8,9,10,
B.10,9,8,7,6,5,4,3,2,1,
C.2,3,1,6,8,7,5,4,10,9,
D.10,9,8,7,6,1,2,3,4,5,
第6题
有以下程序#include <string.h>struct STU{ int num; float TotalScore; };void f(struct STU p){ struct STU s[2]={{1047,530},{1048,531}}; p.num = s[1].num; p.TotalScore = s[1].TotalScore;}main(){ struct STU s[2]={{2041,730},{2042,731}}; f(s[0]); printf("%d,%3.0f\n",s[0].num,s[0].TotalScore);}程序的运行结果是A.1047,530 B.1048,531C.2041,730 D.2042,731
第7题
有以下程序
#include <stdio.h>
struct stu
{ int num; char name [10];int age;};
Void fun(struct stu *p)
{ printf("%s\n,p->name);}
main()
{ struct stu x[3]={ {01,”Zhang”,20},{02, ” Wang”,19},{03, ”zhao”,18} };
fun(x+2);
}
程序运行后的输出结果是
A)Zhang
B)Zhao
C)Wang
D)19
第8题
有以下程序: struct S{int n;int a[20];}; void f(int*a,int n) {int i; for(i=0;i<n-1;i++)a[i]+=i;} mainf() {int i;struct S s{10,{2,3,1,6,8,7,5,4,10,9}}; if(s.a,s.n); for(i=0;i<s.n;i++)printf("%d",s.a[i]);} 程序运行后的输出结果是()。
A.2,4,3,9,12,12,11,11,18,9
B.3,4,2,7,9,8,6,5,11,10
C.2,3,1,6,8,7,5,4,10,9
D.1,2,3,6,8,7,5,4,10,9
第9题
有以下程序
struct S{ int n; int a[20]; };
void f(int *a,int n)
{ int i;
for(i=0;i<n-1;i++) a[i]+=i;
}
main()
{ int i; struct S s={10,{2,3,1,6,8,7,5,4,10,9}};
f(s.a,s.n);
for(i=0;i<s.n;i++) printf("%d",s.a[i]);
}
程序运行后的输出结果是
A)2,4,3,9,12,12,11,11,18,9,
B)3,4,2,7,9,8,6,5,11,10,
C)2,3,1,6,8,7,5,4,10,9,
D)1,2,3,6,8,7,5,4,10,9,
第10题
以下程序的运行结果是() #include struct s { int num; char name[20]; int age; }; fun(struct s *p) { printf("%s\n",(*p).name); } void main() { struct s stud[3]={{101,"Li",18},{102,"Wang",19},{103,"Zhang",21}}; fun(stud+2); }
A、Li
B、Wang
C、Zhang
D、不确定的值
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!