#include<stdio.h>
struct person
{
char name[20];
char sex;
int age;
float height;
}pe;
void a(struct person *p)
{
printf("%s %c %d %f \n",p->name,p->sex,p->age,p->height);
}
void main()
{
struct person
{
char name[20];
char sex;
int age;
float height;
}per[3]={
{"li",'m',20,111},
{"liang",'m',25,118},
{"liu",'w',204,116}
};
struct person *ptr;
a(*ptr); //这里错误
}