I know the following code is not correct, but I really want to know WHY it isn't possible.
struct nod {
int val;
nod a;
};
Of course, I should've made it nod *a
, but why do I get field a
has incomplete type when I compile?
I can however make a
a pointer in the structure which simulate linking to another portion of memory after I free some space using new operator.