Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- struct element
- {
- float wzrost;
- struct element *nast;
- };
- typedef struct element ELEMENT;
- typedef ELEMENT *ADRES;
- void zad5(ADRES*pocz)
- {
- if(*pocz=NULL)
- return;
- if ((pocz->nast)==NULL)
- free (*pocz);
- pocz=NULL;
- return;
- }
- while (pom->nast->nast!=NULL)
- pom=pom->nast;
- free(pom->nast==NULL);
- pom->nast=NULL;
- }
Advertisement
Add Comment
Please, Sign In to add comment