结构成员访问的三种方法
#include "stdio.h"
#include "string.h"
#include <stdlib.h>
main ()
{
struct student{
int num;
char * name;
int score;
}stu;
struct student *p=&stu;
stu.num=1;
(*p).name="tom";
p->score=78;
printf("%d\n",p->num);
printf("%s\n",p->name);
printf("%d\n",p->score);
}
博客介绍了结构成员访问的三种方法,聚焦信息技术领域中结构成员访问相关内容,为相关技术学习提供参考。
5371





