Circularity doubt

Jan 7, 2013 at 7:28pm
hi!!!
Someone can help me ....
1
2
3
4
5

struct nodo{
                   int dado;
                   struct no* prox; //  used struct ...?
};


is not the same ?
1
2
3
4
5

struct nodo{
                   int dado;
                   no* prox; 
};


thx
Jan 7, 2013 at 8:10pm
It depends on language standard and context.

In C, it is required.

In C++, it is only required to disambiguate.

Try it without. If the compiler complains, put it back in.

Hope this helps.
Jan 7, 2013 at 8:29pm
so simple !!!

Tested !!!

Duoas, thanks.....
Topic archived. No new replies allowed.