重要提示:请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
首页 > 大学专科> 电子信息
网友您好,请在下方输入框内输入要搜索的题目:
搜题
拍照、语音搜题,请扫码下载APP
扫一扫 下载APP
题目内容 (请给出正确答案)
[主观题]

若有以下说明和语句 struct student {int age; int num; }std, *p; p=&std; 则以下对结构体变量std

若有以下说明和语句

struct student

{int age;

int num;

}std, *p;

p=&std;

则以下对结构体变量std中成员age的引用方式不正确的是( )。

A.std.age B.p->age C.(*p).age D.*p.age

答案
查看答案
更多“若有以下说明和语句 struct student {int age; int num; }std, *p; p=&std; 则以下对结构体变量std”相关的问题

第1题

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

若有以下定义的语句: 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.

点击查看答案

第2题

若有以下定义的语句 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.

点击查看答案

第3题

若有以下语句,则下面表达式的值为1002的是()。 struct student {int age; int num; }; struct stud

若有以下语句,则下面表达式的值为1002的是( )。

struct student

{int age;

int num;

};

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

struct student *p;

p=stu;

A.(p++)->num B.(p++)->age C.(*p).num D.(*++p).age

点击查看答案

第4题

有以下说明和定义语句: struct student {int age;char num[8];); struct student stu[3]={{20,"20

有以下说明和定义语句:

struct student

{int age;char num[8];);

struct student stu[3]={{20,"200401"},(21,"200402"),(19,"200403"}};

struct student*p=stu;

以下选项中引用结构体变量成员的表达式错误的是( )。

(A)(p++)->num (B)p->num (C)(*p).num (D)stu[3].age

点击查看答案

第5题

若有以下说明和语句。对结构体变量person的出生年月进行赋值时,下面正确的赋值语句是()。struct date{ int year,month,day;}struct worklist{ char name[20];char sex;struct date birthday;} person;

A.year=1958;

B.birthday.year=1958;

C.person.birthday.year=1958;

D.person.year=1958;

点击查看答案

第6题

有以下的定义语句:structstudent{intnum;charname[9];};则不能正确定义结构数组并赋初始值的是()。

A.structstudentstu[2]={1,"zhangsan",2,"lisi"}

B. struct student stu[2]={1, "zhangsan",2,"li si"}

C. struct student stu[2]={{1,"zhangsan"},{2,"li si"}};

D. struct stu[]={{1,"zhangsan"},{2,"li si"}}

点击查看答案

第7题

若有以下说明和语句。下述表达式中,值为72的一个是()。struct person{ char name[10];int age;}class[10]={"LiMing",29,"ZhangHong",21,"WangFang",22};

A.class[0]->age + class[1]->age+ class[2]->age

B.class[1].name[5]

C.person[1].name[5]

D.clase->name[5]

点击查看答案

第8题

以下程序输出结果是( )。 struct stu {int x; int *y; }*p; int dt[4]={10,20,30,40}; struct stu a[4]=150,&dt[0],60,&dt[1],70,&dt[2],80,&dt[3]}; main() { p=a; printf("%d,",++p->x); //语句1 printf("%d,",(p)->x); //语句2 printf("%d\n",++(*p->y)); //语句3 }

A.10,20,20

B.50,60,21

C.51,60,21

D.60,70,31

点击查看答案

第9题

若有以下定义和语句,sizeof(a)的值是【 】,sizeof(a.share)的值是【 】。 struct date { int d

若有以下定义和语句,sizeof(a)的值是【 】,sizeof(a.share)的值是【 】。 struct date { int day; int month; int year; union { int share1; float share2; }share; }a;

点击查看答案

第10题

若有以下语句typedefstructS{intg;charh;}T;以下叙述中正确的是A.可用S定义结构体变量B.S是struc

若有以下语句typedefstructS{intg;charh;}T;以下叙述中正确的是

A.可用S定义结构体变量

B.S是struct类型的变量

C.T是structS类型的变量

D.可用T定义结构体变量

点击查看答案
下载APP
关注公众号
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案 购买前请仔细阅读《购买须知》
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《服务协议》《购买须知》
立即支付 系统将自动为您注册账号
已付款,但不能查看答案,请点这里登录即可>>>
请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示:请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
请用微信扫码测试
优题宝