有以下程序:输出的结果是( )。#include<struct stu{
21 查阅
有以下程序:输出的结果是( )。
#include<
struct stu
{ int num;
char name[10] :
int age;}
void fun(struct stu*p)
{printf("%s\n" ,(*p).name);}
tllain()
{
struct stu students[3]={{9801 ,"Zhang".20} ,
{9802 ,"Wang",19},{9803 ,"Zhao" ,1 8}}
fun(students+2);
}
- A.Zhang
- B.Zhao
- C.Wang
- D.18
参考答案: