(单选题)
若有以下说明和语句: struct student{ int age; int num; }std, *p; p=&std; 则下面对该结构体变量std中成员age的引用方式错误的是()。
Astd.age
B*p.age
C(*p).age
Dp->age
正确答案
答案解析
略
相似试题
(单选题)
若有说明:int *p1,*p2,m=5,n; 以下都是正确的赋值语句的选项是()。
(单选题)
若有定义:int a[2][3],*p[3]; ,则以下语句中,正确的是()。
(填空题)
若已有如下定义: struct node{ int data; struct node *link; } *p; 并且希望通过语句“p=(struct node)malloc( );”使得指针p指向一个具有struct node类型的动态存储空间,则该语句中的空白处(横线上方)应该填入()
(单选题)
以下scanf函数调用语句中对结构体变量成员的不正确引用的是()。 struct node{ char name[20]; int age; int sex; }student[5],*p; p=student;
(简答题)
若有以下宏定义: #define N 2 #define Y(n) ((N+1)*n) 则执行赋值语句z=2*(N+Y(5));后,变量z的值是多少?
(单选题)
若有说明:int a[3][4]; 则对a数组元素的非法引用的是()。
(单选题)
若有说明“int a[10]={1,2,3,4,5,6,7,8,9,10}, *p=a;”,则数值为9的表达式是()。
(单选题)
以下不符合C语言语法的赋值语句是()。
(单选题)
以下不能进行字符串赋初值的语句是()。
![快考试在线搜题](http://static.examk.com/pc/images/qrcode.gif)