Guest User

Untitled

a guest
Oct 16th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. struct test
  5. {
  6. int liczba;
  7. struct test *nastepny;
  8. };
  9.  
  10. struct test *pierwszy = NULL;
  11. struct test *ostatni = NULL;
  12.  
  13. void dodaj(int cyfra)
  14.     {
  15.     if (pierwszy == NULL){
  16.         pierwszy = malloc (sizeof(struct test));
  17.         pierwszy->liczba = cyfra;
  18.         };
  19. }; 
  20.    
  21.  
  22. int main(){
  23.  
  24. return 0;
  25. }
Add Comment
Please, Sign In to add comment