欢迎来到财会考试题库网 财会考试题库官网
logo
全部科目 > 普通考研 > 软件工程

单项选择题

以下scanf函数调用语句中对结构体变量成员的不正确引用的是()。 
struct node{ 
    char name[20];
     int age;
     int sex;
}student[5],*p; 
p=student; 

    A.scanf(“%s”,student[0].name);
    B.scanf(“%d”,&student[0].age);
    C.scanf(“%d”,&(p->sex));
    D.scanf(“%d”,p->age);

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题