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

admin2009-02-15  21

问题 以下程序的输出结果是______。#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 students[3]={  {9801,"Zhang",20},   { 9802,"Wang",19},   { 9803,"Zhao",18} };   fun(students+2);}

选项 A、Zhang
B、Zhao
C、Wang
D、18

答案2

解析
转载请注明原文地址:https://kaotiyun.com/show/NAXp777K
0

最新回复(0)