Neanche un warning![]()
Come dichiareresti una struct nel main?
In questo modo non dovrebbe andare:
Mentre così dovrebbe (tralasciando la cosa del warning):codice:typedef struct Nodo* Next; typedef struct Nodo { int elem; Next n; }; int main() { Nodo a; return; }
Ma a cosa servirebbe allora la typedef?codice:typedef struct Nodo* Next; typedef struct Nodo { int elem; Next n; }; int main() { struct Nodo a; return; }