Understanding typedef with struct [duplicate]
问题 This question already has answers here : typedef struct vs struct definitions [duplicate] (12 answers) Closed 3 years ago . I am getting a hard time understanding this sample of code: typedef struct node { int data; struct node * next; } node; typedef node * nodepointer; So, we are building the struct node using typedef... I assume we are doing this in order to initialize the struct without the "struct" keyword being necessary. I want to ask why in the struct definition we used the name "node