struct node *p中间struct ,node,*p分别代表什么?

如题所述

struct 是 结构体的关键字,node 是结构体的名称,*p 是定义的结构体指针。追问

*p有什么用么?

追答

例如:
struct node
{
int a;

char b;
};

struct node *p;

p->a = 4;
p->b = "H";

追问

谢谢啦

温馨提示:答案为网友推荐,仅供参考
第1个回答  2021-01-20

struct:一种构造数据类型

相似回答