题目内容

struct stu {int num; char name[10]; int age }; void py(struct stu *p) {printf("%s\n",(*p).name);} main() {struct stu student[3]={{1001,"Sun",25}, {1002,"Ling",23}, {1003,"Shen",22}}; py(student+1); }

查看答案
更多问题

已知: struct{int day;char month;int year;}a,*b,b=&a;可用a.day引用结构体中的成员day,请写出通过指针变量b引用成员a.day的其他两种形式,它们是______和______。

从文件中读一个字符,可调用函数______。

设有定义:int a[5]={4,8};则a[0]=______,a[3]=______。

以下内循环语句执行了______次。 int i,j; for(i=5;i;i--) for(j=0;j<4;j++){…}

答案查题题库