#include <stdio.h>
struct student
{int age;
float score;
char name[20];
};
int main()
{
struct studentx={19,83.5,"Li Lei"};
struct student*p;
p=&x;
printf("%d,%f,%s\n",p->age, p->
score, p->name);
return0;
}
运行结果:19,83.500000,Li Lei
如图:
如有帮助,还请帮忙点下采纳!感谢!