Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. struct element
  5. {
  6. int DATA;
  7. struct element *poprzedni;
  8. struct element *nastepny;
  9. };
  10.  
  11. struct element * alokacja(int n)
  12. {
  13. struct element * t;
  14. t=(struct element*)malloc(n*sizeof(struct element));
  15. if(t==NULL)
  16. return NULL;
  17. return t;
  18. }
  19.  
  20.  
  21. int main()
  22. {
  23. alokacja(3);
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement