A-A+
若有以下说明 则在seanf函数调用语句中对结构体变量成员引用方式不正确的是()struct
问题详情
若有以下说明,则在seanf函数调用语句中对结构体变量成员引用方式不正确的是()
struct pub
{char name[20];
int age;
int sex;
}pub[5],*P;
A.scanf("%s",pup[0].name);
B.scanf("%d",&pup[0].age);
C.scanf("%d",&p->sex);
D.scanf("%d",*P.age);
参考答案
正确答案:D
D
[解析] "·"的优先级远高于"&"和"*"。