问题详情

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

以下程序的输出结果是______。#includestruct stu{int num; char name[10]; int age;};v


以下程序的输出结果是______。#include<stdio.h>struct stu{ int num; char name[10]; int age;};void fun(struct stu*p){ printf("%s ",(*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

请帮忙给出正确答案和分析,谢谢!

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