#include<stdio.h>
typedef struct
{
int *u;
struct node next;
} *node;
int main()
{
return 0;
}
What is meant by *node here? I don’t get it. I think there should be a node here but it is compiling anyway.
Here
typedefdefines a new type,node, which is a pointer to the structure.The code in the question may not compile since
struct nodedoesn’t appear to be defined anywhere and yet it’s used inside of the structure.