Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- struct element
- {
- int DATA;
- struct element *poprzedni;
- struct element *nastepny;
- };
- struct element * alokacja(int n)
- {
- struct element * t;
- t=(struct element*)malloc(n*sizeof(struct element));
- if(t==NULL)
- return NULL;
- return t;
- }
- int main()
- {
- alokacja(3);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement