Come dealloco un albero con 4 figli?
Graziecodice:typedef struct qtnode { int cx; int cy; int mol; struct qtnode *nord; struct qtnode *sud; struct qtnode *ovest; struct qtnode *est; }qtnode; typedef struct qtnode* tree;
Come dealloco un albero con 4 figli?
Graziecodice:typedef struct qtnode { int cx; int cy; int mol; struct qtnode *nord; struct qtnode *sud; struct qtnode *ovest; struct qtnode *est; }qtnode; typedef struct qtnode* tree;
prima deallochi i figli e poi il nodo padre