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

若有以下定义的语句 struct student { int age; int num; }; struct student stu[3]={{1001 20}


若有以下定义的语句

struct student

{ int age;

int num; };

struct student stu[3]={{1001,20},{1002,19},{1003,21}};

main()

{ struct student *p;

p=stu;

… }

则以下不正确的引用是

A.(p++)->num

B.p++

C.(*p).num

D.P=&stu.age.

参考答案
您可能感兴趣的试题
  • 若有以下说明和语句 struct student {int age; int num; }std, *p; p=&std; 则以下对结构体变量std

  • 若有以下定义和语句 struct a{ int n,m;}; struct a st[3]={{2,3},{4,5},{6,7}}; struct a*p=st;

  • 若有定义和语句:struct student { int num; char name[10]; float score;} s[5]={{1 lili 98

  • 若有以下语句: typedef struct S {int g;char h;}T; 以下叙述中正确的是( )。 A.可用S定义结构

  • 若有以下定义的语句:struct student{ int age; int num;};struct student stu[3]={{1001 20} {10

  • 有以下说明和定义语句 struct student {int age;char num[8]; }; struct student stu[3]={{20 2