若有以下定义和语句,则对a数组元素地址的正确引用为 int a[2][3],(*p)[3]; p=a;
A.*(p+2)
B.p[2]
C.p[1]+1
D.(p+1)+2
若有定义语句 :int m[]={5,4,3,2,1},i=4; ,则下面对 m 数组元素的引用中错误的是
A)m[--i]
B)m[2*2]
C)m[m[0]]
D)m[m[i]]
A.a=5;
B.a={2,‘a’,1,2};
C.printf(“%d\n”,a);
D.a.1=n;
若有以下定义的语句
struct student
{ int age;
int num; };
struct student stu[3]={{1001,20},{1002,19},{1003,21}};
main()
{ struct student *p;
p=stu;
… }
则以下不正确的引用是
A.(p++)->num
B.p++
C.(*p).num
D.P=&stu.age.
若有以下定义的语句: struct student { int age; int num;}; struct student stu[3]={{1001,20},{1002,19},{1003,21}}; main() { struct student *p; p=stu; …} 则以下不正确的引用是()。
A.(p++)->num
B.p++
C.(*p).num
D.P=&stu.age.
若有一些定义和语句: #include <stdio.h> int a=4,b=3,*p,*q,*w; p=&a; q=&b; w=q; q=NULL; 则以下选项中错误的语句是()。
A.*q=0;
B.w=p;
C.*p=a;
D.*p=*w;