Circularity doubt

Summerson Goncalves (14)
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
Duoas (6752)
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.
Summerson Goncalves (14)
so simple !!!

Tested !!!

Duoas, thanks.....
Registered users can post here. Sign in or register to post.