Can anyone please explain why a self reference on a structure is allowed, but not a variable of that type?
This is what i mean:
struct node{
int a;
struct node *n1;
};
/* This is allowed */
struct node {
int a;
struct node n1;
};
/* But not this */
What is the reason behind this? Can anyone please explin?
Thanks.