指针结构体问题

#include<stdio.h> void main() { struct student { int unm; char *name; float a[3]; char sex; }s[10]; int i,j; char *p=a; for(i=0;i<10;i++) { scanf("%d%s%c",&p->unm,p->name,&p->sex); for(j=0;j<3;j++) { scanf("%f",&p->a[j]); } } for(i=0;i<10;i++) { printf("unm:%d\tname:%s\tsex:%c",p->unm,p->name,p->sex); } }那里错了额。。。。对指针一窍不通