问题 单项选择题

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

A.scanf("%s",pup[0].nam;

B.scanf("%d",&pup[0].ag;

C.scanf("%d",&p->se;

D.scanf("%d",*ag;

答案

参考答案:D

解析: "·"的优先级远高于"&"和"*"。

单项选择题 A1/A2型题
单项选择题