struct student{int num,int score}stu; struct student *p;stu *sp和s这两个指针有什么区别,分别有什么不同的用法!请举例说明,

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/06 21:56:28
struct student{int num,int score}stu; struct student *p;stu *sp和s这两个指针有什么区别,分别有什么不同的用法!请举例说明,

struct student{int num,int score}stu; struct student *p;stu *sp和s这两个指针有什么区别,分别有什么不同的用法!请举例说明,
struct student{int num,int score}stu; struct student *p;stu *s
p和s这两个指针有什么区别,分别有什么不同的用法!
请举例说明,

struct student{int num,int score}stu; struct student *p;stu *sp和s这两个指针有什么区别,分别有什么不同的用法!请举例说明,
有问题吧?struct student{前没有typedef,所以}后的stu只是个结构体student型的变量而不是它的别名,所以stu *s是非法的,因此其他都谈不上了.若struct student{前有typedef,则stu就是student的别名,那么p和s就是对等的了……