在struct中指向自己的类型?

5 c

可能吗?

typedef struct {
    listLink *next;
    listLink *prev;

    void *data;
} listLink;
Run Code Online (Sandbox Code Playgroud)

osg*_*sgx 6

是的,有了这种语法

struct list {
    int   value;
    struct list  *next;
};
Run Code Online (Sandbox Code Playgroud)

要么

typedef struct list
{
      int value;
      struct list *next; 
} list;
Run Code Online (Sandbox Code Playgroud)