有以下程序   struct stu   { int num;   char name[10];   int age;

分类: 2019江中知识赛B(看题模式) 发布时间: 2023-12-01 12:13 浏览量: 0

有以下程序   struct stu   { int num;   char name[10];   int age;   };   void fun(struct stu *p)   { printf("%s\n",(*p).name); }   main()   {   struct stu students[3]={{9801,"Zhang",20},   {9802,"Wang",19},   {9803,"Zhao",18} };   fun(students+2);   }   输出结果是()。

A.Zhang

B.Zhao

C.Wang

D.18

E.B

F.1

正确答案是B