29. 能正确声明学生类型指针变量的语句是_______。
A: student p;
B: student *p;
C: struct student p;
D: struct student *p;
A: student p;
B: student *p;
C: struct student p;
D: struct student *p;
举一反三
- 若有定义:struct student{ int age; int num;};struct student stu,*p;则以下正确的赋值语句是()。 A: p=stu; B: *p=*stu; C: *p=&stu; D: p=&stu;
- 若有以下定义的语句: struct student int age; int num;; struct student stu[3]=1001,20,1002,19,1003,21; main() struct student *p; p=stu; … 则以下不正确的引用是( )。 A: A) (p++)->num B: B) p++ C: C) (*p).num D: D) P=&stu.age.
- 若有以下定义和语句:struct student{ int num ; int age ;} ;struct student stu[3] = {{1001,20} ,{1002,19},{1003,21}} ;main ( ){struct student*p ;p = stu ;. . .}则以下不正确的引用是( )。 A: (p+ + )->; age B: p + + C: (*p).age D: p = &stu. num
- 有以下定义和语句: struct student { int age; int num; }; struct student stu[3]={{1001,20},{1002,19},{1003,21}}; void main() { struct student *p; p=stu; …… } 则以下不正确的引用是
- 若有定义: struct student { int age; int num; }; struct student stu,*p; 则以下正确的赋值语句是()