已知C语言程序段如下:structxs{intnum;charname[20];floatscore;}stu[4]={{1,"chenhong",95.0},{2,"lili",76.5},{3,"wangmei",98.0},{4,"liuxin",100}};structxs*p;p=stu;则值为76.5的表达式是【】
已知C语言程序段如下:structxs{intnum;charname[20];floatscore;}stu[4]={{1,"chenhong",95.0},{2,"lili",76.5},{3,"wangmei",98.0},{4,"liuxin",100}};structxs*p;p=stu;则值为76.5的表达式是【】
A、(*p).score
B、(*++p).score
C、(*p++).score
D、(p++)->score
【正确答案】:B
Top