以下程序执行后的正确结果是()。 struct node { int a; char *s; } x; son(struct node x) { x.a=0; x.s="cgy"; } main() { x.a=1; x.s="czgxy"; son(x); printf("%d,%s\n",x.a,x.s); }
A.0,czgxy
B.0,cgy
C.1,cgy
D.1,czgxy
A.0,czgxy
B.0,cgy
C.1,cgy
D.1,czgxy
A、1
B、11
C、111
D、1111
#nclude
main()
{ struct node{int n;struct nodc*next;}*p;
struct node x[3]={{2,x+1},{4,x+2},{6,NULL}};
p=x:
printf("%d,",p->n);
printf("%d\n",P->next->n);
}
程序运行后的输出结果是
A.2,3
B.2,4
C.3,4
D.4,6
A、*data.x=100;
B、data->x=100;
C、data.(*x)=100;
D、data.x=100;
x=223.82748;
printf(""%6.2f\n"",x);
A. 输出为223.8
B. 输出为223.83
C. 输出为223.82
D. 不能输出
A、struct student {char name[10]; float score; };
B、struct stu[5] {char name[10]; float score; };
C、struct student {char name[10]; float score; } stu[5];
D、struct {char name[10]; float score; }stu[5];
A、a=(b=4)=3
B、a=b=c+1;
C、a=(b=4)+c;
D、a=1+(b=c=4);
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!