问题详情

答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关

有以下程序#include <stdio.h>struct stu{ int num; char name [10];int age;};Void fun(s


有以下程序

#include <stdio.h>

struct stu

{ int num; char name [10];int age;};

Void fun(struct stu *p)

{ printf("%s\n,p->name);}

main()

{ struct stu x[3]={ {01,”Zhang”,20},{02, ” Wang”,19},{03, ”zhao”,18} };

fun(x+2);

}

程序运行后的输出结果是

A)Zhang

B)Zhao

C)Wang

D)19

参考答案
您可能感兴趣的试题