Guest User

Untitled

a guest
Dec 14th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. struct element
  4. {
  5. float wzrost;
  6. struct element *nast;
  7. };
  8. typedef struct element ELEMENT;
  9. typedef ELEMENT *ADRES;
  10. void zad5(ADRES*pocz)
  11. {
  12. if(*pocz=NULL)
  13. return;
  14. if ((pocz->nast)==NULL)
  15. free (*pocz);
  16. pocz=NULL;
  17. return;
  18. }
  19. while (pom->nast->nast!=NULL)
  20. pom=pom->nast;
  21. free(pom->nast==NULL);
  22. pom->nast=NULL;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment