当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

有以下程序:struct s{ int x y; }data[2]={10 100 20 200};main(){ struct s *p=data;printf(\%d


有以下程序:struct s{ int x,y; }data[2]={10,100,20,200};main(){ struct s *p=data;printf("%d ",(p)->x);}程序运行后的输出结果是()。

A、10

B、11

C、20

D、21

参考答案
您可能感兴趣的试题
  • 若程序中有以下说明和定义。struct abc{ int x;char y;}struct abc s1,s2;则会发生的情况是A.编

  • 有以下程序:struct s{ int x,y; }data[2]={10,100,20,200};main(){ struct s *p=data;printf("%d

  • 有以下程序 #include<stdio.h>struct ord {int x y;} dt[2]={1 2 3 4};main(){ struct ord

  • 有以下程序段struct st{int x;int *y;)*pt;int a[]={l 2} b[]={3 4};struct st c[2]={10 a

  • 若程序中有以下说明和定义。struct abc{ int x;char y;}struct abc s1 s2;则会发生的情况是A.编

  • 有以下程序 #include<stdio.h>struct ord {int x y;} dt[2]={1 2 3 4};main(){ struct ord