若有以下说明,则在seanf函数调用语句中对结构体变量成员引用方式不正确的是( ) struct pub {char name[20]; int age; int sex; }pub[5],*P;

admin2010-04-24  32

问题 若有以下说明,则在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

解析 ?的优先级远高于"&"和"*"。
转载请注明原文地址:https://kaotiyun.com/show/S3Ax777K
0

随机试题
最新回复(0)