C语言结构体指针的疑问
发布于 2017-02-22 10:12 2431 次浏览 0 赞 来自 我要提问  

请教一下,这段代码是什么意思?

 typedef struct student{
    int num;
    struct student *pnext;
}stu, *pstu;

谢谢大家!

2 条回复

typedef的意思是说把A的别名设置为B

所以stu是struct student的别名

*pstu是struct student指针的别名

struct student 等价于 stu

struct student * 等价于 pstu


2017-02-22 11:00
︶ε╰ 回复 coder_SD5D3ZHP

手工点赞,哈哈!

2017-02-22 15:02
添加回复
回到顶部