#include<stdio.h>
#include<stdlib.h>
#include<string.h>
void f(char *p)
{
p=(char*)malloc(10);
strcpy(p,"qian");
}
main()
{
struct stu{
char *name;
char gender;
int score;
};
struct stu a={NULL,'m',290},b;
a.name=(char*)malloc(10);
strcpy(a.name,"zhao");
b=a;
f(b.name);
b.gender='f',b.score=350;
printf("%s,%c,%d,",a.name,a.gender,a.score);
printf("%s,%c,%d,",b.name,b.gender,b.score);
}