相关疑难解决方法(0)

为什么我们在自引用结构中使用指针?

为什么我们在自引用结构中使用指针?这是义务还是不是?如果没有,我们在结构与正常结构定义中指向struct的指针有什么优势呢?

typedef struct _Struct {
  struct _Struct* next;  // do we really need this pointer?
} Struct;
Run Code Online (Sandbox Code Playgroud)

c struct pointers self-reference

3
推荐指数
1
解决办法
1034
查看次数

标签 统计

c ×1

pointers ×1

self-reference ×1

struct ×1